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

SO i replaced net.int to int and now get this...... #208

Open
thespuzzy opened this issue Apr 13, 2024 · 1 comment
Open

SO i replaced net.int to int and now get this...... #208

thespuzzy opened this issue Apr 13, 2024 · 1 comment

Comments

@thespuzzy
Copy link

So idk why all of a sudden this started happening but it used to work just fine now i get all these random error codes.......... so after replacing net.int to int i now get this error code.

net = PoseEstimationWithMobileNet()
checkpoint = torch.load('checkpoint_iter_370000.pth', map_location='cpu')
load_state(net, checkpoint)

get_rect(net.cuda(), [image_path], 512)


NameError Traceback (most recent call last)
in <cell line: 5>()
3 load_state(net, checkpoint)
4
----> 5 get_rect(net.cuda(), [image_path], 512)

in get_rect(net, images, height_size)
38 if len(pose_entries[n]) == 0:
39 continue
---> 40 pose_keypoints = np.ones((num_keypoints, 2), dtype=int32) * -1
41 valid_keypoints = []
42 for kpt_id in range(num_keypoints):

NameError: name 'int32' is not defined

@rogeriofloresjr
Copy link

Just replace the int32 in line 40 of the "get_rect" function to int as you did with the others, it worked 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