Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

TypeError: 'NoneType' object has no attribute '__getitem__' #1006

Open
Neo-YH opened this issue Aug 28, 2020 · 5 comments
Open

TypeError: 'NoneType' object has no attribute '__getitem__' #1006

Neo-YH opened this issue Aug 28, 2020 · 5 comments

Comments

@Neo-YH
Copy link

Neo-YH commented Aug 28, 2020

Greetings!
Could you give me some advice on how to solve the problem

File "tools/infer_simple.py", line 139, in main
kp_thresh=2
File "/mnt/md0/yihan/densepose/detectron/utils/vis.py", line 381, in vis_one_image
IUV_fields = body_uv[1]
TypeError: 'NoneType' object has no attribute 'getitem'

image
Thank you sincerely!

@Neo-YH
Copy link
Author

Neo-YH commented Aug 28, 2020

image

@Neo-YH
Copy link
Author

Neo-YH commented Aug 28, 2020

It seems cfg.MODEL.BODY_UV_ON = False or boxes.shape[0] <= 0
After test,the reason is cfg.MODEL.BODY_UV_ON = False
image
image

@Neo-YH
Copy link
Author

Neo-YH commented Aug 28, 2020

image

@Neo-YH
Copy link
Author

Neo-YH commented Aug 28, 2020

image

@Neo-YH
Copy link
Author

Neo-YH commented Aug 28, 2020

Set MODEL.BODY_UV_ON = True
this error can be fixed
but there is error generated before this part
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant