You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
作者您好!我想问一下这个预训练模型应该放在哪个文件夹下呢?还有就是我想用我自己的数据集去训练出现了这个问题,您知道有方法解决嘛?问题如下Traceback (most recent call last):
File "train.py", line 319, in
main()
File "train.py", line 231, in main
for _, train_data in enumerate(train_loader):
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 630, in next
data = self._next_data()
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 673, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 55, in fetch
return self.collate_fn(data)
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 317, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 155, in collate
clone.update({key: collate([d[key] for d in batch], collate_fn_map=collate_fn_map) for key in elem})
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 155, in
clone.update({key: collate([d[key] for d in batch], collate_fn_map=collate_fn_map) for key in elem})
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 142, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 214, in collate_tensor_fn
return torch.stack(batch, 0, out=out)
RuntimeError: stack expects each tensor to be equal size, but got [3, 126, 128] at entry 0 and [3, 128, 128] at entry 1
The text was updated successfully, but these errors were encountered:
作者您好!我想问一下这个预训练模型应该放在哪个文件夹下呢?还有就是我想用我自己的数据集去训练出现了这个问题,您知道有方法解决嘛?问题如下Traceback (most recent call last):
File "train.py", line 319, in
main()
File "train.py", line 231, in main
for _, train_data in enumerate(train_loader):
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 630, in next
data = self._next_data()
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 673, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 55, in fetch
return self.collate_fn(data)
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 317, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 155, in collate
clone.update({key: collate([d[key] for d in batch], collate_fn_map=collate_fn_map) for key in elem})
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 155, in
clone.update({key: collate([d[key] for d in batch], collate_fn_map=collate_fn_map) for key in elem})
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 142, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "/home/ubuntu/anaconda3/envs/irsde/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 214, in collate_tensor_fn
return torch.stack(batch, 0, out=out)
RuntimeError: stack expects each tensor to be equal size, but got [3, 126, 128] at entry 0 and [3, 128, 128] at entry 1
The text was updated successfully, but these errors were encountered: