Giter Site home page Giter Site logo

Comments (5)

Ze-Yang avatar Ze-Yang commented on June 1, 2024

You should first download the COCO 2014 dataset here, and place them accordingly under the instructions I provide in the README.md file. This error indicates that you did not correctly set up the dataset.

from context-transformer.

Zyt-wenwne avatar Zyt-wenwne commented on June 1, 2024

thanks for your reply, I have downloaded the COCO 2014 dataset

from context-transformer.

Zyt-wenwne avatar Zyt-wenwne commented on June 1, 2024

You should first download the COCO 2014 dataset here, and place them accordingly under the instructions I provide in the README.md file. This error indicates that you did not correctly set up the dataset.

a problem had occured when I run the:
python train.py --save-folder weights/VOC_split1_pretrain -d VOC -p 1 -max 50000 --steps 30000 40000 --checkpoint-period 4000 --warmup-iter 1000 --setting incre --split 1

the code of python train.py --save-folder weights/COCO60_pretrain -d COCO -p 1 had finished

[04/27 08:26:11 Context-Transformer]: Starting training from iteration 0
Traceback (most recent call last):
File "train.py", line 300, in
train(model, args.resume)
File "train.py", line 220, in train
data, targets = next(data_loader)
File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 856, in _next_data
return self._process_data(data)
File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data
data.reraise()
File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/_utils.py", line 394, in reraise
raise self.exc_type(msg)
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/plc319/anaconda3/envs/ct/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 "/home/plc319/桌面/Context-Transformer-master/data/voc0712.py", line 235, in getitem
img1, target1 = self.preproc(img1, target1)
File "/home/plc319/桌面/Context-Transformer-master/data/data_augment.py", line 178, in call
image_o = image.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

from context-transformer.

Ze-Yang avatar Ze-Yang commented on June 1, 2024

I have no idea what the problem is with the information you provide. By the way, you may try to avoid using Chinese characters in the directory path since it may sometimes cause some weird errors that are hard to be noticed. Hope it helps. Thanks.

from context-transformer.

alphacyp avatar alphacyp commented on June 1, 2024

You should first download the COCO 2014 dataset here, and place them accordingly under the instructions I provide in the README.md file. This error indicates that you did not correctly set up the dataset.

a problem had occured when I run the: python train.py --save-folder weights/VOC_split1_pretrain -d VOC -p 1 -max 50000 --steps 30000 40000 --checkpoint-period 4000 --warmup-iter 1000 --setting incre --split 1

the code of python train.py --save-folder weights/COCO60_pretrain -d COCO -p 1 had finished

[04/27 08:26:11 Context-Transformer]: Starting training from iteration 0 Traceback (most recent call last): File "train.py", line 300, in train(model, args.resume) File "train.py", line 220, in train data, targets = next(data_loader) File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 345, in next data = self._next_data() File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 856, in _next_data return self._process_data(data) File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data data.reraise() File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/_utils.py", line 394, in reraise raise self.exc_type(msg) AttributeError: Caught AttributeError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop data = fetcher.fetch(index) File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/plc319/anaconda3/envs/ct/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 "/home/plc319/桌面/Context-Transformer-master/data/voc0712.py", line 235, in getitem img1, target1 = self.preproc(img1, target1) File "/home/plc319/桌面/Context-Transformer-master/data/data_augment.py", line 178, in call image_o = image.copy() AttributeError: 'NoneType' object has no attribute 'copy'

Has your problem been solved? I have encountered the same problem as you. Can you tell me how you solved it? Thank you!

from context-transformer.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.