Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVM training is broken with certain inputs #135

Open
subdavis opened this issue Apr 26, 2021 · 1 comment
Open

SVM training is broken with certain inputs #135

subdavis opened this issue Apr 26, 2021 · 1 comment

Comments

@subdavis
Copy link
Contributor

SVM training is broken

There are several different problems with SVM training that cause it to fail.

These examples show the fish one, but I also tried generic config.

category_models directory is used without first being created

This bug which can be hacked in DIVE but should be fixed in smqtk_trainer.py(137)

Video input groundtruth failure

source /opt/noaa/viame/setup_viame.sh && \
  /opt/noaa/viame/bin/viame_train_detector \
  -il /tmp/tmp8f377cwf/input_folder_list.txt \
  -it /tmp/tmp8f377cwf/input_truth_list.txt \
  -c /tmp/addons/extracted/configs/pipelines/train_svm_over_fish_detections.viame_csv.conf --no-query

With input:

worker@3ac8e49fcba5:/tmp/tmp8f377cwf$ cat input_truth_list.txt 
/tmp/tmp8f377cwf/tmp8ui_jrs9/groundtruth.csv

worker@3ac8e49fcba5:/tmp/tmp8f377cwf$ cat input_folder_list.txt 
/tmp/tmp8f377cwf/tmp8ui_jrs9/tmpywj7ove7.mp4

Produces this error:

Beginning Training Process

Initializing database... Success

Processing 1 video

Processing: tmpywj7ove7.mp4 on GPU... 
ERROR: Directory tmpywj7ove7 contains no GT files

exit code 0 means we can't detect this failure

Image silent failure

source /opt/noaa/viame/setup_viame.sh \
  && /opt/noaa/viame/bin/viame_train_detector \
  -il /tmp/tmpppele35q/input_folder_list.txt \
  -it /tmp/tmpppele35q/input_truth_list.txt \
  -c /tmp/addons/extracted/configs/pipelines/train_svm_over_fish_detections.viame_csv.conf --no-query

Produces error:

Opening groundtruth file /tmp/tmpppele35q/tmpk7ejvdyy/groundtruth.csv
......
Beginning Training Process

Initializing database... Success

Processing 1 video

Processing: tmpk7ejvdyy on GPU... Failure

ERROR: Processing failed, terminating.

exit code 0 means we can't detect this failure

@mattdawkins
Copy link
Collaborator

Given the comment about not finding groundtruth, svm training probably doesn't support -it /tmp/tmp8f377cwf/input_truth_list.txt option yet, will see how hard it is to add

@mattdawkins mattdawkins changed the title SVM training is broken SVM training is broken with certain inputs Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants