Home > other >  In emersion FSRCNN in prepare. Py files are generated. The h5 files
In emersion FSRCNN in prepare. Py files are generated. The h5 files

Time:10-29

Traceback (the most recent call last) :
The File "/home/wangquan - user/FSRCNN - pytorch - maste/train. Py", line 69, in & lt; module>
For the data in train_dataloader:
The File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/torch/utils/data/dataloader py", line 819, in __next__
Return the self. _process_data (data)
The File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/torch/utils/data/dataloader py", line 846, in _process_data
Data. Reraise ()
The File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/torch/_utils. Py", line 369, reraise in
Raise the self. Exc_type (MSG)


AttributeError: Caught AttributeError DataLoader in worker process 0.



The Original Traceback (the most recent call last) :
The File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/torch/utils/data/_utils/worker. Py", line 178, in _worker_loop
Data=https://bbs.csdn.net/topics/fetcher.fetch (index)
The File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/torch/utils/data/_utils/fetch. Py", line 44, fetch in
Data=https://bbs.csdn.net/topics/[self. The dataset for independence idx possibly_batched_index] in [independence idx]
The File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/torch/utils/data/_utils/fetch. Py", line 44, in & lt; Listcomp>
Data=https://bbs.csdn.net/topics/[self. The dataset for independence idx possibly_batched_index] in [independence idx]
The File "/home/wangquan - user/FSRCNN - pytorch - maste/datasets. Py", line 14, in the __getitem__
Return np. Expand_dims (f [' lr '] [independence idx]/255, 0), np. Expand_dims (f [' hr '] [independence idx]/255, 0)
File "h5py/_objects pyx," line, 54 in h5py. _objects. With_phil. Wrapper
The File "h5py/_objects pyx", line 55, in h5py. _objects. With_phil. Wrapper
File "/home/wangquan - user/anaconda3 envs/pytorch/lib/python3.6/site - packages/h5py/_hl/group. Py", line 264, in the __getitem__
Oids=h5o. Open (self. The id, the self. _e (name), lapl=self. _lapl)
File "/home/wangquan - user/anaconda3/envs/pytorch/lib/python3.6/site - packages/h5py/_hl/base. Py", line 137, _e in
Name=name. Encode (' ASCII)


AttributeError: 'int' object has no attribute 'encode'



The Process finished with exit code 1

What is this tooth for help, plus WeChat wq853362376
  • Related