Giter Club home page Giter Club logo

Comments (13)

ryanmaxwell96 avatar ryanmaxwell96 commented on May 27, 2024

I'm not sure what I did, but now I am also getting the error:

Traceback (most recent call last): File "tools/train.py", line 168, in <module> main() File "tools/train.py", line 164, in main meta=meta) File "/home/maxwelr/mmtracking/mmtrack/apis/train.py", line 136, in train_model runner.run(data_loaders, cfg.workflow, cfg.total_epochs) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run epoch_runner(data_loaders[i], **kwargs) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 47, in train for i, data_batch in enumerate(self.data_loader): File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 291, in __iter__ return _MultiProcessingDataLoaderIter(self) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 764, in __init__ self._try_put_index() File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 994, in _try_put_index index = self._next_index() File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _next_index return next(self._sampler_iter) # may raise StopIteration File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/sampler.py", line 208, in __iter__ for idx in self.sampler: File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/datasets/samplers/group_sampler.py", line 36, in __iter__ indices = np.concatenate(indices) File "<__array_function__ internals>", line 6, in concatenate ValueError: need at least one array to concatenate Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll pid, sts = os.waitpid(self.pid, flag) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler _error_if_any_worker_fails() RuntimeError: DataLoader worker (pid 32599) is killed by signal: Terminated.

from mmtracking.

ryanmaxwell96 avatar ryanmaxwell96 commented on May 27, 2024

I believe this is still related to the first issue I showed though:

line 6, in concatenate ValueError: need at least one array to concatenate Error in atexit._run_exitfuncs

from mmtracking.

AzeroGYH avatar AzeroGYH commented on May 27, 2024

I have followed all instructions. And I'm getting this error when I try to run

python tools/train.py configs/mot/deepsort/deepsort_faster-rcnn_fpn_4e_mot17-public-half.py

Traceback (most recent call last): File "tools/train.py", line 168, in <module> main() File "tools/train.py", line 164, in main meta=meta) File "/home/maxwelr/mmtracking/mmtrack/apis/train.py", line 136, in train_model runner.run(data_loaders, cfg.workflow, cfg.total_epochs) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run epoch_runner(data_loaders[i], **kwargs) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 47, in train for i, data_batch in enumerate(self.data_loader): File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 291, in __iter__ return _MultiProcessingDataLoaderIter(self) File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 764, in __init__ self._try_put_index() File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 994, in _try_put_index index = self._next_index() File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _next_index return next(self._sampler_iter) # may raise StopIteration File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/sampler.py", line 208, in __iter__ for idx in self.sampler: File "/home/maxwelr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/datasets/samplers/group_sampler.py", line 36, in __iter__ indices = np.concatenate(indices) File "<__array_function__ internals>", line 6, in concatenate ValueError: need at least one array to concatenate

Hi, do you have solved this issue? I get the same issue and have no idea about it.

from mmtracking.

OceanPang avatar OceanPang commented on May 27, 2024

Hi all, please read the README.md

As these trackers are using offline trained detectors, you need to train the detector first and infer with the MOT model.

from mmtracking.

AtGrover avatar AtGrover commented on May 27, 2024

According to my assumption, VID does not require already trained detector as the task is training a detector itself but not sure why I am getting this error for VID with SELSA or any other architecture @OceanPang

from mmtracking.

GT9505 avatar GT9505 commented on May 27, 2024

@AtGrover Hi, what command did you run? Could you give the error information of SELSA?

from mmtracking.

AtGrover avatar AtGrover commented on May 27, 2024

Running with
python tools/train.py config/vid/$SELSA_CONFIG
Base config in selsa default config is changed to the new dataset (i.e. CocoVID)

from mmtracking.

lantudou avatar lantudou commented on May 27, 2024

Same question, Using the SELSA config file for the customized dataset will cause this error. It seems like the training dataloader cannot find the image path

from mmtracking.

lantudou avatar lantudou commented on May 27, 2024

@GT9505 Hi, Any updates for this issue?

from mmtracking.

lantudou avatar lantudou commented on May 27, 2024

Well, I find the solution, In the config file, you need to set the classes as the same as the categories in your annotation json file. If not, the mmtrack will ignore all data and cause this error

from mmtracking.

hammerAttack avatar hammerAttack commented on May 27, 2024

thank you, : )

from mmtracking.

Bigfishering avatar Bigfishering commented on May 27, 2024

hi,thouth i have changed the classess and the num_class,but i still met the same problem,could i get your email and ask for u?

from mmtracking.

Dinghaoxuan avatar Dinghaoxuan commented on May 27, 2024

hi,thouth i have changed the classess and the num_class,but i still met the same problem,could i get your email and ask for u?

The classes in "./mmtrack/datasets/imagenet_vid_dataset.py" should also be changed.

from mmtracking.

Related Issues (20)

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.