-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any hints about using the pre-trained pkl file? #10
Comments
Yes, the API of serializer.load_hdf5(args.pretrainedmodel, model) seems did not work, and even if I changed the extension of file pkl to h5 or hdf5. |
@shiba24 Could you please redesign the part of loading pre-trained model? |
Thank you, @ColdCodeCool, I've noticed the version of chainer has changed a lot since I wrote this code. Will check it soon! |
@shiba24 Great! Hope to see it soon. Thank you! |
@shiba24 After I digged deeper into the code, I recognized that it seems the VGG model is double loaded. Since the line "model = HumanParts(n_class = 15)" has loaded the pkl file, there is no need to load the model again the next few lines. But I got another issue that how to visulize the mask obtained by visualize.py? Thank you! |
@ColdCodeCool To visualize the mask obtained by visualize.py, you can load the file with extension .npy, and then use matplot functions to save image into png format. import matplotlib.pyplot as plt Proabably is not the best way to retrieve and visualize mask. Maybe exists other ways more directly using only one line, but this two lines works. |
Hi, I am a newbie to ML and just followed the readme to download the FCN model, without any idea using it.
My goal is to use the pre-trained model and see how it works, because my GPU is around 6GB which seems not enough for training.
I googled the pkl file and it seems to be something working with python pickle model, so I:
and get the dictionary "loaded model", with a bunch of numbers, while the keys are:
Then stuck here, not knowing what to do next.
Could anyone please help telling how to use the pre-trained model? Any hints would be appreciative.
The text was updated successfully, but these errors were encountered: