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

there is no w32_256x256_adam_lr1e-3.yaml #22

Closed
azuryl opened this issue Dec 9, 2020 · 9 comments
Closed

there is no w32_256x256_adam_lr1e-3.yaml #22

azuryl opened this issue Dec 9, 2020 · 9 comments

Comments

@azuryl
Copy link

azuryl commented Dec 9, 2020

I run
python tools/test.py
--cfg experiments/coco/hrnet/w32_256x192_adam_lr1e-3.yaml
TEST.MODEL_FILE models/pytorch/pose_coco/pose_hrnet_w32_256x192.pth
TEST.USE_GT_BBOX Fals
from https://github.com/HuangJunJie2017/UDP-Pose/tree/master/deep-high-resolution-net.pytorch

but in experiments/coco/hrnet/ just have w32_256x192_adam_lr1e-3_offset_ofm.yaml and does not match pose_hrnet_w32_256x192.pth
https://github.com/HuangJunJie2017/UDP-Pose/tree/master/deep-high-resolution-net.pytorch/experiments/coco/hrnet

and how to run your UDP-hrnet_w32_256x192

@azuryl azuryl changed the title there are no w32_256x256_adam_lr1e-3.yaml there is no w32_256x256_adam_lr1e-3.yaml Dec 9, 2020
@HuangJunJie2017
Copy link
Owner

where did you down load the model~ we provide the models trained with udp here
image

@azuryl
Copy link
Author

azuryl commented Dec 9, 2020

I had download your model and updated the w32_256x192_adam_lr1e-3.yaml from Hrnet
but there is error
python inference.py --cfg ../experiments/coco/hrnet/w32_256x192_adam_lr1e-3.yaml --videoFile ../../../Alexander\ Zverev\ vs\ Dominic\ Thiem\ -\ US\ Open\ 2020\ Final.mp4 --writeBoxFrames --outputDir output TEST.MODEL_FILE UDP-hrnet_w32_256x192.pth
=> loading model from UDP-hrnet_w32_256x192.pth
Traceback (most recent call last):
File "inference.py", line 341, in
main()
File "inference.py", line 226, in main
pose_model.load_state_dict(torch.load(cfg.TEST.MODEL_FILE), strict=False)
File "/home/azuryl/anaconda3/envs/udppose/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1044, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for PoseHighResolutionNet:
size mismatch for final_layer.weight: copying a param with shape torch.Size([51, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([17, 128, 1, 1]).
size mismatch for final_layer.bias: copying a param with shape torch.Size([51]) from checkpoint, the shape in current model is torch.Size([17]).

@HuangJunJie2017
Copy link
Owner

can you run the origin hrnet repo with the pretrained models provided by the origin hrnet repo?

@HuangJunJie2017
Copy link
Owner

If you can't, you should question on the origin hrnet repo for support.
If you can, you won't have problem in using this repo with the pretrained models provided in this repo.

@HuangJunJie2017
Copy link
Owner

try not to use the origin hrnet repo alone with the pretrained models in this repo, so do the inverse

@azuryl
Copy link
Author

azuryl commented Dec 9, 2020

@HuangJunJie2017
Copy link
Owner

emmm, but the others have no problem about using this.

make sure that you use this config: experiments/coco/hrnet/w32_256x192_adam_lr1e-3_offset_ofm.yaml
make sure that you use this checkpoint: UDP-hrnet_w32_256x192.pth which should be downloaded from here: https://pan.baidu.com/s/1mPuVj8piYzgWjoRgyd0Cwg (dsa9)

run this under https://github.com/HuangJunJie2017/UDP-Pose/tree/master/deep-high-resolution-net.pytorch ?

python tools/test.py --cfg experiments/coco/hrnet/w32_256x192_adam_lr1e-3_offset_ofm.yaml TEST.MODEL_FILE models/pytorch/pose_coco/UDP-hrnet_w32_256x192.pth TEST.USE_GT_BBOX False

@azuryl
Copy link
Author

azuryl commented Dec 11, 2020

thank you

@azuryl azuryl closed this as completed Dec 11, 2020
@azuryl azuryl reopened this Dec 14, 2020
@azuryl
Copy link
Author

azuryl commented Dec 14, 2020

since your hrnet fold's name is same as orginal repo but in fact your hrnet's fold just can run your model but orginal model .I had run youe model success
udphrnet

"emmm, but the others have no problem about using this."

@azuryl azuryl closed this as completed Dec 14, 2020
HuangJunJie2017 pushed a commit that referenced this issue Feb 10, 2023
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