Closed sxstone closed 3 years ago
Same problem.
the same problem:
`--------------------------------------------------------------------------- TypeError Traceback (most recent call last)
I have the same problem. I’ve been trying it for the past 3 days since Sunday and I’m gettin the same error message.
I have error that is like below... I don't know how to solve this error.. Please teach me how to solve this error...
TypeError Traceback (most recent call last)
Same issue!! Glad I'm not alone!
Same Error since yesterday. Like 20 hours ago.
The error is stating that the function is receiving an unexpected keyword argument named "demo." To get past this problem, stop passing the demo keyword argument to the group_keypoints
function.
The error is stating that the function is receiving an unexpected keyword argument named "demo." To get past this problem, stop passing the demo keyword argument to the
group_keypoints
function.
Thank you for your reply. I did the same thing, that is, I deleted the demo keyword, but I don't know if it will bring other effects.
Same issue
same issue plzz give some solution
Please remove the demo=True from this part of code:
pose_entries, all_keypoints = group_keypoints(all_keypoints_by_type, pafs, demo=True)
Also you can see the fixed code here: https://colab.research.google.com/drive/1YZfHcLDJwRo-8Ty3tV1h0rN7iwrOmftT?usp=sharing
Alright, but for some reason I am having this error:
Warning: opt is overwritten.
test data size: 1
initialize network with normal
initialize network with normal
generate mesh (test) ...
0% 0/1 [00:00<?, ?it/s]/content/pifuhd/lib/data/EvalDataset.py:87: UserWarning: loadtxt: Empty input file: "/content/pifuhd/sample_images/shackcomm2tp_rect.txt"
rects = np.loadtxt(rect_path, dtype=np.int32)
0% 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/content/pifuhd/apps/simple_test.py", line 30, in <module>
reconWrapper(cmd, args.use_rect)
File "/content/pifuhd/apps/recon.py", line 220, in reconWrapper
recon(opt, use_rect)
File "/content/pifuhd/apps/recon.py", line 205, in recon
test_data = test_dataset[i]
File "/content/pifuhd/lib/data/EvalDataset.py", line 131, in __getitem__
return self.get_item(index)
File "/content/pifuhd/lib/data/EvalDataset.py", line 93, in get_item
im = crop_image(im, rect)
File "/content/pifuhd/lib/data/EvalDataset.py", line 17, in crop_image
x, y, w, h = rect
ValueError: not enough values to unpack (expected 4, got 0)
The xxxxx_rect.txt
file doesn't seem to be generating properly, as I have had no luck with it. Is this related to removing demo=True
?
Same, my _rect.txt
file is empty
Edit: Actually on the fixed colab sheet it seems to just get stuck somewhere and it never finishes on the get_rect(net.cuda(), [image_path], 512)
line
Same error
You can remove demo argument in group_keypoints(). I have removed it in the released colab notebook. For those who experience empty rect file, likely no keypoint is detected in an input image. Feel free to post failure images here if you need further diagnosis.
Why is this closed when the problem is NOT FIXED??
We are still getting EMPTY rect_files
Can anyone help me solve the blank _rect file generated?
Actually on the fixed colab sheet it seems to just get stuck somewhere and it never finishes on the get_rect(net.cuda(), [image_path], 512) line
The _rect.txt
file contains a bounding box which isolates the person in the image.
_rext.txt
is generated by first using the openpose.py script to generate an OpenPose wireframe of each individual. OpenPose stores its results in an .obj
file. Then, the PiFUHD script uses the OpenPose .obj
file to generate the bounding box internally which it then stores in the _rect.txt
. Alternatively, instead of using OpenPose, one can simply supply the _rect.txt
. Presumably, if you do not have a bounding box you can set the bounding box to be the full dimensions of the image._rect.txt
so I cannot help you write one by hand. If anyone has that information, and can post a sample file, please do. When I generate one I will post it here. Just change the last code before the cell with erro to use int instead of np.int, and change the np.bool from pifuhd/lib/sdf.py to use bool
I try to run the demo on Google collab, but the following errors always appear. All processes are carried out according to the video, and the input image is also used test.png Why do the following errors occur? After trying many solutions, I don't know if anyone has the same problem. Can it be solved?
TypeError Traceback (most recent call last)