New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Training Problems #10
Comments
This error occurred when the data path was wrong. Please print the input data path to check whether it is right. |
I try to train my data,unfortunately it reported an error as: I wonder whether it is still a data path error ? Thanks! |
You can just print the path of B to check the error. |
Thanks for your reply. |
You can just follow the way I used in 'real_world.txt' and put the image in folder. And then print the image path in dataloader to ensure that the image path is right. |
@Uparrow0 Have you solved the problem. I find that I can't find in which .py file to change the path of the training dataset and test dataset, if you know please tell me. thank you. |
When I train your model with your training data set , I get this error:
2019-08-16 21:04:48,300 - INFO - set log dir as ./logdir
2019-08-16 21:04:48,300 - INFO - set model dir as ./model
hhaha: <torch.utils.data.dataloader._DataLoaderIter object at 0x7f199e9516a0>
Traceback (most recent call last):
File "main.py", line 300, in
run_train_val(args.model)
File "main.py", line 228, in run_train_val
batch_t = next(dt_train)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
AttributeError: Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/ubuntu/ZY/SPANet-master/dataset.py", line 28, in getitem
O = Image.fromarray(O)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/PIL/Image.py", line 2642, in fromarray
arr = obj.array_interface
AttributeError: 'NoneType' object has no attribute 'array_interface'
As a green hand, I did a lot of research, but all failed.
Could you take a look at this problem for me? Thanks a lot!
The text was updated successfully, but these errors were encountered: