@@ -49,6 +49,7 @@ cp-dev-bio:
49
49
cp ./ aipipeline/ projects/ bio/ core/ *.py / Volumes/ dcline/ code/ aipipeline/ aipipeline/ projects/ bio/ core
50
50
cp ./ aipipeline/ projects/ bio/ config/ * / Volumes/ dcline/ code/ aipipeline/ aipipeline/ projects/ bio/ config/
51
51
cp ./ aipipeline/ projects/ bio/ model/ *.py / Volumes/ dcline/ code/ aipipeline/ aipipeline/ projects/ bio/ model/
52
+ cp ./ deps/ biotrack/ biotrack/ *.py / Volumes/ dcline/ code/ aipipeline/ deps/ biotrack/ biotrack/
52
53
53
54
# Copy i2map dev code to the project on doris
54
55
cp-dev-i2map :
@@ -139,7 +140,7 @@ load-ptvr-images images='tmp/roi' *more_args="":
139
140
cluster-ptvr-images images = ' tmp/roi' * more_args = " ":
140
141
#!/usr/bin/env bash
141
142
export PROJECT_DIR=./ aipipeline/ projects/ planktivore
142
- time sdcat cluster roi --config-ini $PROJECT_DIR/ config/ sdcat.ini --roi-dir {{ images}} {{ more_args}}
143
+ time sdcat cluster roi --config-ini $PROJECT_DIR/ config/ sdcat.ini --device cuda: 1 -- roi-dir {{ images}} {{ more_args}}
143
144
# Load planktivore ROI clusters
144
145
load-ptvr-clusters clusters = ' tmp/roi/cluster.csv' * more_args = " ":
145
146
#!/usr/bin/env bash
@@ -252,7 +253,7 @@ predict-vss project='uav' image_dir='/tmp/download' *more_args="":
252
253
run-ctenoA-test :
253
254
#!/usr/bin/env bash
254
255
export PYTHONPATH=.
255
- time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ vss_init .py \
256
+ time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ run_strided_track .py \
256
257
- -config ./ aipipeline/ projects/ bio/ config/ config.yml \
257
258
- -class_name " Ctenophora sp. A" \
258
259
- -endpoint-url " http://localhost:8001/predict" \
@@ -262,7 +263,7 @@ run-ctenoA-test:
262
263
run-ctenoA-prod :
263
264
#!/usr/bin/env bash
264
265
export PYTHONPATH=.
265
- time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ vss_init .py \
266
+ time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ cluster .py \
266
267
- -config ./ aipipeline/ projects/ bio/ config/ config.yml \
267
268
- -class_name " Ctenophora sp. A" \
268
269
- -endpoint-url " http://fastap-fasta-0riu3xafmhua-337062127.us-west-2.elb.amazonaws.com/predict" \
@@ -272,7 +273,7 @@ run-ctenoA-prod:
272
273
run-mega-inference :
273
274
#!/usr/bin/env bash
274
275
export PYTHONPATH=.
275
- time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ vss_init .py \
276
+ time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ cluster .py \
276
277
- -config ./ aipipeline/ projects/ bio/ config/ config.yml \
277
278
- -class_name " animal" \
278
279
- -class-remap " {\" animal\" :\" marine organism\" }" \
@@ -293,8 +294,8 @@ run-mega-track-bio-video video='/mnt/M3/mezzanine/Ventana/2022/09/4432/V4432_202
293
294
time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects/ bio/ process.py \
294
295
- -config ./ aipipeline/ projects/ bio/ config/ config.yml \
295
296
- -max-frames-tracked 200 --min-score-det 0.1 --min-score-track 0.1 --batch-size 15 --min-frames 10 --version delme \
296
- - -vits-model / Volumes / DeepSea-AI/ models/ i2MAP/ mbari-i2map-vits-b-16ntnr- 20250130 / \
297
- - -det-model / Volumes / DeepSea-AI/ models/ megadet --skip-load \
297
+ - -vits-model / mnt / DeepSea-AI/ models/ i2MAP/ mbari-i2map-vits-b-16ntnr- 20250130 / \
298
+ - -det-model / mnt / DeepSea-AI/ models/ megadet --skip-load \
298
299
- -stride 1 --video {{ video}} --max-seconds 10 --flush --gpu-id {{ gpu_id}}
299
300
300
301
# Run the mega strided tracking pipeline on a single video for the bio project for 30 seconds
@@ -336,16 +337,17 @@ run-mega-track-bio-dive dive='/mnt/M3/mezzanine/Ventana/2022/09/4432' gpu_id='0'
336
337
find " {{ dive}} " -name ' *.m*' ! -name " ._*.m*" -type f | xargs -P 1 -n 1 -I {} bash -c ' process_file "{}"'
337
338
338
339
# Run the mega strided tracking pipeline on a single video for the i2map project
340
+ # --det-model /mnt/DeepSea-AI/models/FathomNet/megalodon/ \
339
341
#run-mega-track-i2map-video video='/mnt/M3/master/i2MAP/2019/02/20190204/i2MAP_20190205T102700Z_200m_F031_17.mov' gpu_id='0':
340
342
run-mega-track-i2map-video video = ' /mnt/M3/master/i2MAP/2024/11/20241119/i2MAP_20241119T165914Z_200m_F031_4.mov' gpu_id = ' 0':
341
343
#!/usr/bin/env bash
342
344
export PYTHONPATH=.:deps/ biotrack:.
343
345
time python3 aipipeline/ projects/ bio/ process.py \
346
+ - -det-model / mnt/ DeepSea-AI/ models/ megadetrg-yolov5 \
344
347
- -config ./ aipipeline/ projects/ i2map/ config/ config.yml \
345
- - -det-model / mnt/ DeepSea-AI/ models/ FathomNet/ megalodon/ \
346
348
- -vits-model / mnt/ DeepSea-AI/ models/ i2MAP/ mbari-i2map-vits-b-8- 20250216 \
347
349
- -max-frames-tracked 200 --min-score-det 0.02 --min-score-track 0.1 --min-frames 8 --version metadetrt-vits-track-ft \
348
- - -stride 1 --skip-load --batch-size 16 --create-video \
350
+ - -stride 1 --skip-load --batch-size 16 --create-video --max-seconds 1 \
349
351
- -video {{ video}} --gpu-id {{ gpu_id}}
350
352
351
353
# Run the mega strided tracking pipeline on a single video to test the pipeline
@@ -354,8 +356,8 @@ run-mega-track-test-1min:
354
356
export PYTHONPATH=.:/ Users/ dcline/ Dropbox/ code/ biotrack:.
355
357
time python3 aipipeline/ projects/ bio/ predict.py \
356
358
- -config ./ aipipeline/ projects/ bio/ config/ config.yml \
357
- - -det-model / Volumes / DeepSea-AI/ models/ megadet \
358
- - -vits-model / Volumes / DeepSea-AI/ models/ m3midwater-vit-b-16 \
359
+ - -det-model / mnt / DeepSea-AI/ models/ megadet \
360
+ - -vits-model / mnt / DeepSea-AI/ models/ m3midwater-vit-b-16 \
359
361
- -max-frames-tracked 200 --min-score-det 0.0002 --min-score-track 0.5 --min-frames 5 --version mega-vits-track-gcam \
360
362
- -stride 8 --max-seconds 60 --imshow --skip-load \
361
363
- -video aipipeline/ projects/ bio/ data/ V4361 _20211006 T163256 Z_h265 _1min.mp4
@@ -366,7 +368,7 @@ run-mega-track-test-fastapiyv5:
366
368
export PYTHONPATH=.:/ Users/ dcline/ Dropbox/ code/ biotrack:.
367
369
time python3 aipipeline/ projects/ bio/ predict.py \
368
370
- -config ./ aipipeline/ projects/ bio/ config/ config.yml \
369
- - -vits-model / Volumes / DeepSea-AI/ models/ m3midwater-vit-b-16 \
371
+ - -vits-model / mnt / DeepSea-AI/ models/ m3midwater-vit-b-16 \
370
372
- -max-frames-tracked 200 --min-score-det 0.0002 --min-score-track 0.5 --min-frames 5 --version mega-vits-track-gcam \
371
373
- -stride 15 --max-seconds 60 --imshow --skip-load \
372
374
- -endpoint-url http:// FastAP-FastA-0RIu3xAfMhUa-337062127. us-west-2.elb.amazonaws.com/ predict \
@@ -377,19 +379,19 @@ cluster-i2mapbulk:
377
379
#!/usr/bin/env bash
378
380
export PYTHONPATH=.
379
381
export MPLCONFIGDIR=/ tmp
380
- time conda run -n aipipeline --no-capture-output python3 aipipeline/ projects / i2mapbulk / vss_init .py \
382
+ time conda run -n aipipeline --no-capture-output python3 aipipeline/ prediction / cluster_pipeline .py \
381
383
- -config ./ aipipeline/ projects/ i2mapbulk/ config/ config_unknown.yml \
382
384
- -data aipipeline/ projects/ i2mapbulk/ data/ bydepth.txt
383
385
384
- # Init VSS with combined i2MAP training data. Run with just init-i2map-vss
385
- init-i2map-vss :
386
+ # Run sweep for planktivore data. Example just cluster-ptvr-swp /mnt/ML_SCRATCH/Planktivore/aidata-export-03-low-mag-square /mnt/DeepSea-AI/data/Planktivore/cluster/aidata-export-03-low-mag-square
387
+ cluster-ptvt-sweep roi_dir = ' /mnt/ML_SCRATCH/Planktivore/aidata-export-03-low-mag-square' save_dir = ' /mnt/DeepSea-AI/data/Planktivore/cluster/aidata-export-03-low-mag-square' :
386
388
#!/usr/bin/env bash
387
389
export PYTHONPATH=.
388
- export MPLCONFIGDIR= / tmp
389
- time conda run -n aipipeline --no-capture-output python3 aipipeline / projects / i2map / vss_init.py \
390
- - -config . / aipipeline / projects / i2map / config / config.yml \
391
- - -processed-path / mnt / ML_SCRATCH / i2map / Combined /
392
-
390
+ for alpha in 0.8 0.9 1.0 ; do
391
+ for epsilon in 0.01 0.05 0.1 0.5 ; do
392
+ just -- justfile {{ justfile () }} cluster-ptvr-images {{ roi_dir }} --save-dir {{ save_dir }} --alpha $alpha --cluster-selection-epsilon $epsilon
393
+ done
394
+ done
393
395
# Load i2MAP bulk data run with ENV_FILE=.env.i2map just load-i2mapbulk <path to the cluster_detections.csv file>
394
396
load-i2mapbulk data = ' data':
395
397
#!/usr/bin/env bash
@@ -421,4 +423,4 @@ gen-uav-data:
421
423
gen-stats-csv project = ' UAV' data = ' /mnt/ML_SCRATCH/UAV/':
422
424
#!/usr/bin/env bash
423
425
export PYTHONPATH=.
424
- time conda run -n aipipeline python3 aipipeline/ prediction/ gen_stats.py --data {{ data}} --prefix {{ project}}
426
+ time conda run -n aipipeline python3 aipipeline/ prediction/ gen_stats.py --data {{ data}} --prefix {{ project}}
0 commit comments