facebookresearch / pifuhd

High-Resolution 3D Human Digitization from A Single Image.
Other
9.46k stars 1.43k forks source link

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

Open thespuzzy opened 3 months ago

thespuzzy commented 3 months ago

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 commented 2 months ago

Just replace the int32 in line 40 of the "get_rect" function to int as you did with the others, it worked for me