Code Monkey home page Code Monkey logo

Comments (8)

BichenWuUCB avatar BichenWuUCB commented on July 22, 2024

@goan15910 What's your command for launching the training thread? Did you make any modification to the config file?

from squeezedet.

goan15910 avatar goan15910 commented on July 22, 2024

I use the vgg16 version in the train.sh and all config are the same as original.

from squeezedet.

skyz8421 avatar skyz8421 commented on July 22, 2024

When I tried to train SqueezeDet on KITTI dataset, I met the problem about joblib as following:

Traceback (most recent call last):
File "./src/train.py", line 281, in
tf.app.run()
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "./src/train.py", line 277, in main
train()
File "./src/train.py", line 122, in train
model = SqueezeDet(mc, FLAGS.gpu)
File "/home/lsk/my_tensorflow/squeezeDet/src/nets/squeezeDet.py", line 24, in init
self._add_forward_graph()
File "/home/lsk/my_tensorflow/squeezeDet/src/nets/squeezeDet.py", line 38, in _add_forward_graph
self.caffemodel_weight = joblib.load(mc.PRETRAINED_MODEL_PATH)
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/site-packages/joblib/numpy_pickle.py", line 459, in load
obj = unpickler.load()
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/pickle.py", line 1096, in load_global
klass = self.find_class(module, name)
File "/home/lsk/anaconda2/envs/tensorflow/lib/python2.7/pickle.py", line 1132, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'NumpyArrayWrapper'

My tensorflow version is 0.12, easydict is 1.6 joblib is 0.10.3.
I can also run the demo code, have you solved your problem? @goan15910

from squeezedet.

goan15910 avatar goan15910 commented on July 22, 2024

Hi, @samlong-yang
I made the pretrained-weights pkl file myself and it works.
I used this repository caffe-tensorflow to convert caffe model weight into npy file and dump it into pkl file. If you are going to use this repo, make sure not to transpose the channels as the original code of src/nn_skeleton.py, since the repo already switch them from caffe order into tensorflow order.

from squeezedet.

skyz8421 avatar skyz8421 commented on July 22, 2024

Thanks for your reply and suggestions very much! I will try for that.

from squeezedet.

skyz8421 avatar skyz8421 commented on July 22, 2024

Your solution works for me @goan15910 .
I find that there is a file in the project ./src/utils/caffemodel2pkl.py, which is also helpful for converting the caffemodel into pkl weight file. It also works fine to me.

from squeezedet.

caocuong0306 avatar caocuong0306 commented on July 22, 2024

This is probably because you used different version of joblib 0.10.3.
I just had the same problem with @samlong-yang when using joblib 0.9.4. I updated to 0.10.3 and everything is fine.

from squeezedet.

liuwei16 avatar liuwei16 commented on July 22, 2024

Dear @samlong-yang how do you convert the squeezenet_v1.1.caffemodel to pkl by caffemodel2pkl.py?
should the prototxt be modified in some way?
Thanks

from squeezedet.

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.