skhu101 / SHERF

Code for our ICCV'2023 paper "SHERF: Generalizable Human NeRF from a Single Image"
Other
297 stars 10 forks source link

Bug while testing on HuMMan dataset #10

Closed scnuhealthy closed 11 months ago

scnuhealthy commented 11 months ago

I follow the guidance, but a bug appears in test_loop.py line 210 img = np.concatenate([input_img_resize, img], axis=0) the size of input_img_resize is (720,720,3) while img is (360,1280,3)

skhu101 commented 11 months ago

Hi, thanks for your reminder. You can change "img = np.concatenate([input_img_resize, img], axis=0) " to "input_img_resize = cv2.resize(input_img, (2*W, H))". I have updated the test code. If you have any further questions, please let me know.

scnuhealthy commented 11 months ago

Thanks for your reply. And I found another bug in HuMMan_dataset.py , obs_view_index is not defined while testing. One solution maybe obs_view_index=self.obs_view_index

skhu101 commented 11 months ago

Hi, may I ask in which line do you have the error? By the way, do you use the latest code in HuMMan_dataset.py?

scnuhealthy commented 11 months ago

The line 340 obs_view_index is not defined, I think it should be self.obs_view_index

skhu101 commented 11 months ago

Hi, I have fixed the code. Now it should work. Thanks for pointing out this.