shunsukesaito / PIFu

This repository contains the code for the paper "PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization"
https://shunsukesaito.github.io/PIFu/
Other
1.76k stars 341 forks source link

Implementation of multi-view #42

Closed kyleleey closed 4 years ago

kyleleey commented 4 years ago

If change the 'num_views' set in lib/options.py to a value bigger than 1, which stands for multi-view, the network code will have a bug, specificly in the line 114(maybe a little different because I add some comments in my file before) of lib/model/HGPIFuNet.py

pred = in_img[:, None].float() * self.surface_classifier(point_local_feat)

here the size of in_img[:, None].float() is *[Bnum_views, 1, N] and the size of self.surface_classifier(point_local_feat) is [B, 1, N]**. So if num_views=1 as default there won't be this bug, but if set to more than 1, the bug of tensor dimension can't align will occur.

kyleleey commented 4 years ago

Actually I have just noticed there is a issue before and the author said the code now is optimized for single-view, so that's actually answer my question.