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

multiple index for each iteration #51

Closed alitokur closed 4 years ago

alitokur commented 4 years ago

Dear Sir, I don't know why but here the getitem function is called twice. (batch_size = 1 number_views = 1)

 for epoch in range(start_epoch, opt.num_epoch): #number of epoch is 100
        for train_idx, train_data in enumerate(train_data_loader): 
            iter_start_time = time.time()
            break
        break

ex: epoch=0; train_idx=0 the first iteration calls the getitem i have two index here: they are 352 and 97. but the index returned : 352. Is there any problem here or am I missing someting?

Screenshot from 2020-07-16 21-31-37

shunsukesaito commented 4 years ago

what is your number of workers for data loader? Check if you have the same issue, when you set num_threads=0.

alitokur commented 4 years ago

huh! u are right, num_threads=0, fixed it. thank you sir.