shuffle(mbq) is extremly slow

조회 수: 4 (최근 30일)
Matti Kaupenjohann
Matti Kaupenjohann 2021년 9월 2일
댓글: Matti Kaupenjohann 2021년 9월 3일
I run the Object Detection with yolov3 Deep Learning with a custom dataset with only 126 Images. The epochs themself are running in a reasonable speed but the function calls
reset(mbqtrain)
shuffle(mbqtrain)
takes unreasonable 25 sec for the reset and 111 sec for the shuffle. (both tested with a simple tic toc). This slows the trainingtime extremly down. The System runs on a 6 Core i5-10600, a Nvidia 1050 Ti and 16 GB RAM.
I didn't yet test the times with the VehicleSet but I realized also a pause between epochs.
Any Ideas how adress this issue?
  댓글 수: 3
Matti Kaupenjohann
Matti Kaupenjohann 2021년 9월 2일
편집: Matti Kaupenjohann 2021년 9월 2일
which('shuffle')
says: datastoreio\+matlab\+io\+datastore\@ImageDatastore\shuffle.m
and
doc shuffle
shows the documentation for datastores.
But I know that their is a documentation which shows the syntax
shuffle(mbq)
which seems to be a different shuffle function. If they are actually different functions thats kinda weird.
I also tested it now in the other direction:
mbq.reset();
mbq.shuffle();
which runs faster (both around 5 seconds) but then the next(mbq) or the mbq.next() method calls takes much longer for the first time called and then the reset and shuffle method again takes much longer (25 sec and 115 sec) in the second epoch.
Matti Kaupenjohann
Matti Kaupenjohann 2021년 9월 3일
In the meantime I realized, that the size of image matters a lot, which seems kind of weird for methods, which handle the indexing (Or IMHO it should only handle the indexing). Also the loading of my small images (399 x 244) should not take 25 seconds...

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Custom Training Loops에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by