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

Add inference script #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gachiemchiep
Copy link

Hello @HuAndrew
I add an inference script to run the trained model on video.

For the pose_hrnet_w32_student_FPD.pth trained model, I can inference fine using network definition at experiments/coco/hrnet/w32_256x192_adam_lr1e-3.yaml.

Unfortunately, the hourglass_student_FPD_.pth and hourglass_student_FPD.pth couldn't be loaded by experiments/fpd_mpii/hourglass/hg8_256x256_d256x3_adam_lr2.5e-4.yaml.
Where can I find the network definition for hourglass_student_FPD_.pth and hourglass_student_FPD.pth?

RuntimeError: Error(s) in loading state_dict for HourglassNet:
	size mismatch for conv1.weight: copying a param with shape torch.Size([32, 3, 7, 7]) from checkpoint, the shape in current model is torch.Size([64, 3, 7, 7]).
	size mismatch for conv1.bias: copying a param with shape torch.Size([32]) from checkpoint, the shape in current model is torch.Size([64]).
	size mismatch for bn1.weight: copying a param with shape torch.Size([32]) from checkpoint, the shape in current model is torch.Size([64]).
	size mismatch for bn1.bias: copying a param with shape torch.Size([32]) from checkpoint, the shape in current model is torch.Size([64]).
	size mismatch for bn1.running_mean: copying a param with shape torch.Size([32]) from checkpoint, the shape in current model is torch.Size([64]).

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

Successfully merging this pull request may close these issues.

1 participant