DEFT icon indicating copy to clipboard operation
DEFT copied to clipboard

Training is stuck at the beginning on custom dataset

Open rvrsprdx opened this issue 3 years ago • 4 comments

Hi and thanks for your work! I'm trying to train DEFT on a dataset which I have used to train CenterTrack successfully before. When running train.py the output seems promising: Creating model... Setting up train data... ==> initializing train data from ../data/s/tracking_train.json, images from ../data/data_tracking_image/training/ ... loading annotations into memory... Done (t=0.18s) creating index... index created! Creating video index! Loaded Custom dataset 202 samples Starting training... yesyes tracking/nameOfMyDataset Here the process gets stuck and nothing happens. I can see that about 800mb has been occupied by my gpu.

Do you have any idea what might be causing this issue? Thanks!

rvrsprdx avatar Jun 15 '21 16:06 rvrsprdx

Hi @rvrsprdx were you able to solve this issue?

anidh avatar Nov 18 '21 08:11 anidh

Yes, Iirc I had to change the import order of pytorch and opencv. Surprisingly, that fixed the issue.

rvrsprdx avatar Nov 18 '21 08:11 rvrsprdx

Thanks a lot @rvrsprdx for the quick response. Were you able to detect anything with the custom dataset training? When I'm using --debug option it's Time throwing me error.

anidh avatar Nov 23 '21 09:11 anidh

Same question. Could you please tell me where the modifications should be made? I have changed the import order of pytorch and opencv in the test.py and other files, but it didn't work.

Shelton-Zhou avatar Jul 30 '23 09:07 Shelton-Zhou