6
6
docker pull [image_id]
7
7
8
8
1.a.1. If use a GPU:
9
- docker run -it --gpus device=0 -v [repo path ]:/codabench [image_id] /bin/bash
9
+ docker run -it --gpus device=0 -v [repo_path ]:/codabench [image_id] /bin/bash
10
10
1.a.2. If only use CPU:
11
- docker run -it -v [repo path ]:/codabench [image_id] /bin/bash
11
+ docker run -it -v [repo_path ]:/codabench [image_id] /bin/bash
12
12
13
13
cd codabench
14
14
@@ -34,12 +34,12 @@ export baseline_model="bioclip"
34
34
export task_folder=" ${data_split} _${baseline_model} "
35
35
36
36
37
- # # create folder structure
37
+ # Create folder structure
38
38
if [[ " $task_type " == * " folder" * ]]; then
39
39
mkdir -p sample_result_submission/$task_folder /ref
40
40
mkdir -p sample_result_submission/$task_folder /res
41
- export ref_path=" /home/wu.5686/imageo/challenge/reference_data /ref_$data_split .csv"
42
- cp $ref_path sample_result_submission/$task_folder /ref
41
+ export ref_path=" [the path of folder you put the simulated ground truth csv file] /ref_$data_split .csv"
42
+ cp $ref_path sample_result_submission/$task_folder /ref # Put the simulated ground truth csv file in the ref folder.
43
43
fi
44
44
45
45
: << 'END_COMMENT '
@@ -51,11 +51,10 @@ sample_result_submission
51
51
-- res
52
52
END_COMMENT
53
53
54
- # # get the predictions
54
+ # Get the predictions
55
55
if [[ " $task_type " == * " predict" * ]]; then
56
- export input_dir=" input_data/$data_split "
57
- # export input_dir="/local/scratch/wu.5686/anomaly_challenge/input_data/$data_split"
58
- export output_dir=" sample_result_submission/$task_folder /res"
56
+ export input_dir=" input_data/$data_split " # This is the directory you put the images in.
57
+ export output_dir=" sample_result_submission/$task_folder /res" # The prediction file will output to this directory.
59
58
export program_dir=" ingestion_program"
60
59
if [ " $baseline_model " == " bioclip" ]; then
61
60
export submission_dir=" baselines/BioCLIP_code_submission"
@@ -69,7 +68,7 @@ if [[ "$task_type" == *"predict"* ]]; then
69
68
python3 ingestion_program/ingestion.py $input_dir $output_dir $program_dir $submission_dir
70
69
fi
71
70
72
- # # score the predictions
71
+ # Score the predictions
73
72
if [[ " $task_type " == * " evaluate" * ]]; then
74
73
export input_dir=" sample_result_submission/$task_folder "
75
74
export output_dir=" sample_result_submission/$task_folder "
0 commit comments