Coder Social home page Coder Social logo

Comments (5)

lihao2333 avatar lihao2333 commented on July 2, 2024

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.

lihao2333 avatar lihao2333 commented on July 2, 2024

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.

sammilei avatar sammilei commented on July 2, 2024

@lihao2333 Hi, How did you fix the issue of the shapes? I got the same issue.

from image-segmentation-keras.

JordanMakesMaps avatar JordanMakesMaps commented on July 2, 2024

See issue #3 for the solution. Do not enter a input width and height at command prompt.

from image-segmentation-keras.

divamgupta avatar divamgupta commented on July 2, 2024

Image segmentation keras has been updated with tensorflow support. This should fix the issue.

from image-segmentation-keras.

Related Issues (20)

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.