Comments (5)
After I run sudo pip install h5py
,it coms to
Traceback (most recent call last):
File "train.py", line 51, in <module>
m = modelFN( n_classes , input_height=input_height, input_width=input_width )
File "/home/Proj/T_keras/image-segmentation-keras/Models/VGGSegnet.py", line 56, in VGGSegnet
vgg.load_weights(VGG_Weights_path)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 2649, in load_weights
with h5py.File(filepath, mode='r') as f:
File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py", line 269, in __init__
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py", line 99, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 78, in h5py.h5f.open
IOError: Unable to open file (truncated file: eof = 86569520, sblock->base_addr = 0, stored_eoa = 553466928)
I print
the varialbe filepath
, it is actually the path of vgg16_weights_th_dim_ordering_th_kernels.h5
which I donwload.
What should I do ? Thanks a lot.
from image-segmentation-keras.
I found that I don't download h5 file
completely, I download it again, then it raise
ValueError: Dimension 0 in both shapes must be equal, but are 102400 and 25088. Shapes are [102400,4096] and [25088,4096]. for 'Assign_26' (op: 'Assign') with input shapes: [102400,4096], [25088,4096].
And I found the solution on other issue. It works !!
from image-segmentation-keras.
@lihao2333 Hi, How did you fix the issue of the shapes? I got the same issue.
from image-segmentation-keras.
See issue #3 for the solution. Do not enter a input width and height at command prompt.
from image-segmentation-keras.
Image segmentation keras has been updated with tensorflow support. This should fix the issue.
from image-segmentation-keras.
Related Issues (20)
- How to resume model training from last saved weight file?
- Installation requirement of h5py<=2.10.0?
- Not working on video
- Augmentations with "do_augment=True"
- Local Machine Multi GPU usage
- Wrong number of classes in visualize_segmentation
- urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>
- Unable to Work Preprocessing Function Parameter for model.train() HOT 1
- Custom Augmentation: AttributeError: 'Compose' object has no attribute 'to_deterministic'
- how to get FLOPs and Params
- crash to reboot durring training on both linux and windows
- iteration number is fixed to 512 and doesn't change
- Normalization problem
- if my pictures have a channel number more than 3, how to change the code to adapt to it
- Run pre-trained from Command Line?
- turning off the print statements?
- Another project using this lib....
- question about vgg16.py block 5
- TypeError: train() got an unexpected keyword argument 'callbacks'
- Model Deployment
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 image-segmentation-keras.