Giter VIP home page Giter VIP logo

Comments (9)

dsanno avatar dsanno commented on August 16, 2024

Are there any console messages?
If the console is showing "load VGG16 caffemodel", the program should be loading caffe model file.
It takes several minutes, and please be patient.

from chainer-neural-style.

dovanchan avatar dovanchan commented on August 16, 2024

I have waited about 1 hours, It still no complete the loading~I had tried many times, it still no work

Stop at here:
/chainer-neural-style$ python src/create_chainer_model.py
load VGG16 caffemodel .

from chainer-neural-style.

dsanno avatar dsanno commented on August 16, 2024

Can you create CaffeFunction instance?
Please confirm if CaffeFunction constructor works as follows:

(on Python interactive shell)
>>> from chainer.links.caffe import CaffeFunction
>>> ref = CaffeFunction('VGG_ILSVRC_16_layers.caffemodel')

If it doesn't work, I think Chainer or protobuf package may not be correctly installed or caffe model file may be corrupted.

from chainer-neural-style.

dovanchan avatar dovanchan commented on August 16, 2024

from chainer.links.caffe import CaffeFunction
ref = CaffeFunction('VGG_ILSVRC_16_layers.caffemodel')
Traceback (most recent call last):
File "", line 1, in
File "/home/cu_00095/.local/lib/python2.7/site-packages/chainer/links/caffe/caffe_function.py", line 133, in init
with open(model_path, 'rb') as model_file:
IOError: [Errno 2] No such file or directory: 'VGG_ILSVRC_16_layers.caffemodel'

Can you tell me where is the correct path for the VGG_ILSVRC_16_layers.caffemodel?
I had tried to put it in /chainer-neural-style or . /chainer-neural-style/src
But it still IOError: [Errno 2] No such file or directory: 'VGG_ILSVRC_16_layers.caffemodel'

from chainer-neural-style.

dsanno avatar dsanno commented on August 16, 2024

The correct path for VGG_ILSVRC_16_layers.caffemodel is "chainer-neural-style".
In more detail

  1. Put VGG_ILSVRC_16_layers.caffemodel into chainer-neural-style directory.
  2. Move to chainer-neural-style directory
  3. Run Python and create CaffeFunction instance.

You can use os.path.exists to check whether the file exists or not.

from chainer-neural-style.

dovanchan avatar dovanchan commented on August 16, 2024

cu_00095@gtx1080:/chainer-neural-style$ ls
LICENSE README.md src VGG_ILSVRC_16_layers.caffemodel
cu_00095@gtx1080:
/chainer-neural-style$ python src/create_chainer_model.py
load VGG16 caffemodel

cu_00095@gtx1080:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from chainer.links.caffe import CaffeFunction
ref = CaffeFunction('VGG_ILSVRC_16_layers.caffemodel')
Traceback (most recent call last):
File "", line 1, in
File "/home/cu_00095/.local/lib/python2.7/site-packages/chainer/links/caffe/caffe_function.py", line 133, in init
with open(model_path, 'rb') as model_file:
IOError: [Errno 2] No such file or directory: 'VGG_ILSVRC_16_layers.caffemodel'

I have done these, But it always stop at here
I had tried many times, it still no work

from chainer-neural-style.

dovanchan avatar dovanchan commented on August 16, 2024

The VGG_ILSVRC_16_layers.caffemodel has exist in the chainer-neural-style,I have checked many times;
But It still have a error for No such file.~ Is it a bug need to be fixed?

just stop at load model~

from chainer-neural-style.

dsanno avatar dsanno commented on August 16, 2024

Did you check VGG_ILSVRC_16_layers.caffemodel exists on Python shell ?
For example, do these commands work?

>>> import os
>>> os.getcwd()
'/path/to/current/working/directory'
>>> os.path.exists('VGG_ILSVRC_16_layers.caffemodel')
True
>>> f = open('VGG_ILSVRC_16_layers.caffemodel', 'rb')
>>> f.close()

from chainer-neural-style.

dovanchan avatar dovanchan commented on August 16, 2024

I have put the file "VGG_ILSVRC_16_layers.caffemodel" under '/chainer-neural-style',
But run os.path.exists('VGG_ILSVRC_16_layers.caffemodel') . failed....
What should I do to let the python findout this model~

from chainer-neural-style.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.