Comments (9)
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.
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.
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.
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.
The correct path for VGG_ILSVRC_16_layers.caffemodel is "chainer-neural-style".
In more detail
- Put VGG_ILSVRC_16_layers.caffemodel into chainer-neural-style directory.
- Move to chainer-neural-style directory
- Run Python and create CaffeFunction instance.
You can use os.path.exists
to check whether the file exists or not.
from chainer-neural-style.
cu_00095@gtx1080:/chainer-neural-style$ ls/chainer-neural-style$ python src/create_chainer_model.py
LICENSE README.md src VGG_ILSVRC_16_layers.caffemodel
cu_00095@gtx1080:
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.
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.
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.
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)
- Trianing speed is super slow with your L-BFGS HOT 2
- How to reduce the GPU memory using HOT 5
- The problem of First 100 epoch done HOT 2
- use VGG19 model HOT 1
- About parameters modify HOT 6
- Strange error HOT 1
- Cpu mode support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chainer-neural-style.