simrdwn icon indicating copy to clipboard operation
simrdwn copied to clipboard

No detection during test time

Open wendyzzzw opened this issue 5 years ago • 12 comments

I was trying to reproduce the result with COWC, however, there are no cars detected during test time while the loss curve during training time looks reasonable:

yolt_loss_plot_tiny_cowc

I was using yolo-v2-tiny config and weights, and I was using Tesla K80 on GCP with CUDA Version: 10.1. Any idea on what's going wrong??

wendyzzzw avatar May 20 '19 01:05 wendyzzzw

It's hard to determine what might be happening without further details. What test data are you using, and what parameters are used for the test command?

avanetten avatar May 30 '19 13:05 avanetten

@avanetten I am using the COWC data, here are my commands for training and testing:

python simrdwn/core/simrdwn.py \ --framework yolt2 \ --mode train \ --outname yolov2_cars \ --yolt_cfg_file yolov2tiny.cfg \ --weight_dir simrdwn2/yolt2/input_weights \ --weight_file yolov2-tiny.weights \ --yolt_train_images_list_file cowc_yolt_train_list.txt \ --label_map_path simrdwn2/train_data/class_labels_car.pbtxt \ --nbands 3 \ --max_batches 10000 \ --batch_size 64 \ --subdivisions 32 \ --gpu 0

python simrdwn/core/simrdwn.py \ --framework yolt2 \ --mode test \ --outname yolov2_cars \ --label_map_path 'simrdwn/train_data/class_labels_car.pbtxt' \ --train_model_path 'train_yolt2_yolov2_cars_2019_05_30_06-30-51' \ --weight_file yolov2tiny_final.weights \ --yolt_cfg_file yolov2tiny.cfg \ --testims_dir 'test_images/cowc' \ --keep_test_slices 0 \ --test_slice_sep __ \ --test_make_legend_and_title 0 \ --edge_buffer_test 1 \ --test_box_rescale_frac 1 \ --plot_thresh_str 0.01 \ --slice_sizes_str 416 \ --slice_overlap 0.2 \ --alpha_scaling 1 \ --show_labels 1

wendyzzzw avatar May 30 '19 18:05 wendyzzzw

@avanetten also, sometimes there is a bug showing up during test time: pd.read_csv cannot find file "results/test_xxxxxx/cars.txt"

This bug can be fixed by just re-making yolt2. I am not sure why this is happening.

wendyzzzw avatar May 30 '19 18:05 wendyzzzw

I have the same problem, did you fix it? @wendyzzzw

MhmdDimassi avatar Jun 12 '19 11:06 MhmdDimassi

Can you print out the output of the test script? The issue in pd.read_csv() is usually caused because there was an error further upstream and the inference script did not run correctly

avanetten avatar Jun 12 '19 17:06 avanetten

Yes sure, i was print it now in my issue: https://github.com/avanetten/simrdwn/issues/44#issuecomment-501442591

MhmdDimassi avatar Jun 12 '19 20:06 MhmdDimassi

I was trying to reproduce the result with COWC, however, there are no cars detected during test time while the loss curve during training time looks reasonable:

yolt_loss_plot_tiny_cowc

I was using yolo-v2-tiny config and weights, and I was using Tesla K80 on GCP with CUDA Version: 10.1. Any idea on what's going wrong??

@avanetten I have encountered a similar situation. yolt_loss_plot I think , even though the model don't convergence correctly, there should be some wrong boxes in the output file,while there is nothing. It makes me confused.

ssunlin avatar Sep 22 '19 14:09 ssunlin

I have the same problem. @MhmdDimassi @wendyzzzw did you manage to fix it?

Spiruel avatar Nov 07 '19 11:11 Spiruel

I have the same problem. @MhmdDimassi @wendyzzzw did you manage to fix it?

Can you please put the test command that you use

MhmdDimassi avatar Nov 07 '19 14:11 MhmdDimassi

I have the same problem. @MhmdDimassi @wendyzzzw did you manage to fix it?

Can you please put the test command that you use

python simrdwn/core/simrdwn.py --framework yolt2 --mode test --outname dense_cowc --label_map_path class_labels_car.pbtxt --train_model_path /simrdwn/results/train_yolt2_dense_cars_2019_11_05_16-40-12 --weight_file ave_dense_final.weights --yolt_cfg_file ave_dense.cfg --testims_dir cowc/Utah_AGRC --keep_test_slices 0 --test_slice_sep __ --test_make_legend_and_title 0 --edge_buffer_test 1 --test_box_rescale_frac 1 --plot_thresh_str 0.2 --slice_sizes_str 416 --slice_overlap 0.2 --alpha_scaling 1 --show_labels 1

Spiruel avatar Nov 07 '19 15:11 Spiruel

This is likely an issue with YOLO and updates to architectures (see https://github.com/avanetten/simrdwn/issues/31#issuecomment-501925778). You may need to experiment with the yolt2 Makefile.

avanetten avatar Nov 07 '19 15:11 avanetten

This is likely an issue with YOLO and updates to architectures (see #31 (comment)). You may need to experiment with the yolt2 Makefile.

OK thanks I will look into this. Do you have any working COWC weights that I may use to help debug, so I can avoid training all over again?

Spiruel avatar Nov 07 '19 16:11 Spiruel