-
Notifications
You must be signed in to change notification settings - Fork 926
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
get colored images from my pretrained caffemodel #90
Comments
Hi, did you use the correct "prototxt" file? This file contains the architecture details |
yes, I also replaced the pre-trained "prototxt" file with the training "prototxt" file, but another problem appeared,training pipeline can't output the colored images |
I know. I had the same problem with demo_release.py (Pytorch version), but when I used this command: |
I replaced the corresponding part in the colorize.py with ./models/colorization_train_val_v2.prototxt and colornet_iter_135000.caffemodel(caffemodel saved in training process). but the output image is from net.blobs['class8_ab'].data in colorize.py. this 'class8_ab' blobs is not in the structure of training caffemodel. Will the output result be correct? Can you tell me which file you replaced? |
I use "./models/colorization_deploy_v2.prototxt" for .prototxt file. I think this file contains the lastest architecture updates. |
so you use "./models/colorization_deploy_v2.prototxt" and the model you train(not default='./models/colorization_release_v2.caffemodel') and you get the right result?i just hope that the colored images I get are trained on the model with fine-tuned parameters based on my own dataset. |
Yes, exactly. I also trained the model on another dataset. No worry! |
No worry. It is interesting. No, I did not face this problem.
|
thanks,I read your script. it seems that you did not preprocess the training data into BGR images,so this can directly get the correct result. |
Your welcome. I used the BGR format. When you read an image using OpenCV, its channel order is BGR, not RGB; that means my LMDB contains images in BGR format. |
oh! yes, thanks a lot! |
Good luck! |
hello,thanks for your work. I want to use the pre-trained caffemodel that training from my own dataset to output the colored images.First I find colorize.py( Test-Time Python Script) and replace default model(colorization_release_v2.caffemodel) with my caffemodel(e.g. colornet_iter_51000.caffemodel) , but I found my caffemodel's network structure is different from the default model's, so the output image seems to be wrong. what should I do?
If you have free time,please answer my question,thanks!
The text was updated successfully, but these errors were encountered: