他的回复:
Starting training...Traceback (most recent call last):File "src/train.py", line 165, in main(opt)File "src/train.py", line 77, in mainlog_dict_train, _ = trainer.train(epoch, train_loader)File "/cache/user-job-dir/src/lib/trains/base_trainer.py", line 123, in trainreturn self.run_epoch('train', epoch, data_loader)File "/cache/user-job-dir/src/lib/trains/base_trainer.py", line 61, in run_epochfor iter_id, batch in enumerate(data_loader):File "/home/work/anaconda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 345, in __next__data = self._next_data()File "/home/work/anaconda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 856, in _next_datareturn self._process_data(data)File "/home/work/anaconda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 881, in _process_datadata.reraise()File "/home/work/anaconda/lib/python3.6/site-packages/torch/_utils.py", line 394, in reraiseraise self.exc_type(msg)AttributeError: Caught AttributeError in DataLoader worker process 0.Original Traceback (most recent call last):File "/home/work/anaconda/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loopdata = fetcher.fetch(index)File "/home/work/anaconda/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetchdata = [self.dataset[idx] for idx in possibly_batched_index]File "/home/work/anaconda/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in data = [self.dataset[idx] for idx in possibly_batched_index]File "/cache/user-job-dir/src/lib/datasets/sample/ctdet.py", line 39, in __getitem__height, width = img.shape[0], img.shape[1]AttributeError: 'NoneType' object has no attribute 'shape'[ModelArts Service Log]modelarts-pipe: total length: 4888[Modelarts Service Log]Training end with return code: 1[Modelarts Service Log]Training completed.请问训练报这个错误如何处理?