switchablenorms / DeepFashion_Try_On

Official code for "Towards Photo-Realistic Virtual Try-On by Adaptively Generating↔Preserving Image Content",CVPR‘20 https://arxiv.org/abs/2003.05863
816 stars 250 forks source link

list index out of range #71

Closed littleandcommon closed 3 years ago

littleandcommon commented 3 years ago

image

latest_net_U.pth latest_net_G1.pth latest_net_G2.pth latest_net_G.pth /home/wg/anaconda3/envs/dl/lib/python3.6/site-packages/torchvision/transforms/transforms.py:208: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead. "please use transforms.Resize instead.") /home/wg/anaconda3/envs/dl/lib/python3.6/site-packages/torchvision/transforms/transforms.py:208: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead. "please use transforms.Resize instead.") Traceback (most recent call last): File "test.py", line 104, in for i, data in enumerate(dataset, start=epoch_iter): File "/home/wg/anaconda3/envs/dl/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 286, in next return self._process_next_batch(batch) File "/home/wg/anaconda3/envs/dl/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 307, in _process_next_batch raise batch.exc_type(batch.exc_msg) IndexError: Traceback (most recent call last): File "/home/wg/anaconda3/envs/dl/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 57, in _worker_loop samples = collate_fn([dataset[i] for i in batch_indices]) File "/home/wg/anaconda3/envs/dl/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 57, in samples = collate_fn([dataset[i] for i in batch_indices]) File "/home/wg/dl_env/DeepFashion_Try_On-master/ACGPN_inference/data/aligned_dataset.py", line 135, in getitem B_path = self.B_paths[index] IndexError: list index out of range

when I run the test.py the IndexError apper ,anyone can help me?