Skip to content
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

Asking for 'truth' value on 'resnet-v2-101' model #369

Closed
sehyun03 opened this issue Aug 22, 2018 · 2 comments
Closed

Asking for 'truth' value on 'resnet-v2-101' model #369

sehyun03 opened this issue Aug 22, 2018 · 2 comments

Comments

@sehyun03
Copy link

Hi thanks for great work.

I changed "resnet-v2-101 ckpt file" on tensorflow/slim into pytorch codes.
Following #22

When I check this 'pth' weight file on pytorch imagenet classification tasks,
it didn't worked. (imagenet frozen cls test gets no accuracy at all)

Therefore I want to check if the weight file created properly by your "imagenet_test/TestKit/truth" value, which doesn't including resnet_v2_101.

Platform (like ubuntu 16.04/win10):
ubuntu 16.04
Python version:
2.7
Source framework with version (like Tensorflow 1.4.1 with GPU):
tensorflow 1.10.0
Destination framework with version (like CNTK 2.3 with GPU):
pytorch 0.3.0post4
Pre-trained model path (webpath or webdisk path):
https://github.com/tensorflow/models/tree/master/research/slim/resnet_v2_101_2017_04_14.tar.gz
Running scripts:
python -m mmdnn.conversion.examples.tensorflow.extract_model -n resnet_v2_101 -ckpt resnet_v2_101.ckpt
python -m mmdnn.conversion._script.convertToIR -f tensorflow -d kit_imagenet -n imagenet_resnet_v2_101.ckpt.meta --dstNodeName Squeeze -w imagenet_resnet_v2_101.ckpt
python -m mmdnn.conversion._script.IRToCode -f pytorch --IRModelPath kit_imagenet.pb --dstModelPath kit_imagenet.py --IRWeightPath kit_imagenet.npy -dw kit_pytorch.npy
python -m mmdnn.conversion.examples.pytorch.imagenet_test --dump resnet.pth -n kit_imagenet.py -w kit_pytorch.npy

@namizzz
Copy link
Contributor

namizzz commented Aug 23, 2018

Hi @sehyun03 , I find your model url is '404 Not Found'. So I try to test the conversion between tensorflow and Pytorch with resnet_v2_101 , it's the result:
image

@sehyun03
Copy link
Author

Thank you @namizzz ,
I think I should check the input or preprocess.
Again, thank you for verifying for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants