Coder Social home page Coder Social logo

lego_detector's People

Contributors

internal-jew avatar kirillsid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lego_detector's Issues

dense_1 shape problem

When I run the resnet module, I meet a problem with the shape of layer.Here is the output:
Traceback (most recent call last):
File "PredictFromCamera.py", line 89, in
video_capture(_args)
File "PredictFromCamera.py", line 26, in video_capture
model, labels_map, int_to_labels_map = load_model(args.data_root, args.model, args.snapshot)
File "/media/bongos/Seagate1/tensorflow/lego_detector/Predict.py", line 252, in load_model
model.load_weights(os.path.join(snapshot_path, snapshot), by_name=True)
File "/home/bongos/venv/lib/python3.5/site-packages/keras/engine/network.py", line 1163, in load_weights
reshape=reshape)
File "/home/bongos/venv/lib/python3.5/site-packages/keras/engine/saving.py", line 1149, in load_weights_from_hdf5_group_by_name
str(weight_values[i].shape) + '.')
ValueError: Layer #176 (named "dense_1"), weight <tf.Variable 'dense_1/kernel:0' shape=(100352, 38) dtype=float32_ref> has shape (100352, 38), but the saved weight has shape (2048, 38).

My environment is tensorflow-gpu 1.12.0, Keras 2.2.4, Keras-Applications 1.0.7, Keras-Preprocessing 1.0.9
Can you help me with the problem?

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.