-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (37 loc) · 1.75 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: cls-build cls-run cls-train cls-server seg-build seg-run seg-train
cls-build:
buildah build -t droneseg_cls --layers -f DockerfileClassif .
cls-run: cls-build
podman run --gpus all --rm --ipc host \
-e CUDA_VISIBLE_DEVICES=$(CUDA_VISIBLE_DEVICES) \
-v .:/app \
-v ./data \
-v ./data/iNaturalist_split:/home/kamyar/Documents/filtered_inat_split/ \
-v output:/home/kamyar/PycharmProjects/droneSegmentation/lowAltitude_classification \
-v /dev/shm/:/dev/shm/ \
droneseg_cls bash -c "make cls-train"
cls-train:
python lowAltitude_classification/Dinov2_iNaturalist_classification_fine-tuning.py
# Server
cls-server: cls-build
podman run --gpus all --rm --ipc host -it \
-e CUDA_VISIBLE_DEVICES=$(CUDA_VISIBLE_DEVICES) \
-v output:/home/kamyar/PycharmProjects/droneSegmentation/lowAltitude_classification \
-v .:/app/ \
-v /dev/shm/:/dev/shm/ \
droneseg_cls bash
seg-build:
buildah build -t droneseg_seg --layers -f DockerfileSeg .
seg-run: seg-build
podman run --gpus all --rm --ipc host -it \
-e CUDA_VISIBLE_DEVICES=$(CUDA_VISIBLE_DEVICES) \
-v .:/app \
-v ./data \
-v ./data/iNaturalist_split:/home/kamyar/Documents/filtered_inat_split/ \
-v output:/home/kamyar/PycharmProjects/droneSegmentation/lowAltitude_classification \
-v /dev/shm/:/dev/shm/ \
droneseg_seg bash
build-pixel-decoder:
cd lowAltitude_segmentation/Mask2Former/mask2former/modeling/pixel_decoder/ops/ && sh make.sh && cd -
seg-train:
python lowAltitude_segmentation/Mask2Former/train_net.py --config-file configs/Drone_regrowth/semantic-segmentation/swin/maskformer2_swin_large_IN21k_384_bs16_160k_res640.yaml --eval-only MODEL.WEIGHTS /home/kamyar/PycharmProjects/droneSegmentation/lowAltitude_segmentation/Mask2Former/output/model_0104999.pth