ilessio-aiflowlab commited on
Commit
ebf044d
·
verified ·
1 Parent(s): c4d55cf

Add training config

Browse files
Files changed (1) hide show
  1. configs/default.toml +64 -0
configs/default.toml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [attack]
2
+ # Number of optimization iterations
3
+ num_iterations = 100
4
+ # Confidence threshold for Mask R-CNN detections
5
+ confidence_threshold = 0.8
6
+ # Nuclear norm regularization weight
7
+ lambda1 = 0.1
8
+ # Frobenius norm regularization weight
9
+ lambda2 = 0.01
10
+ # Exponentiated gradient learning rate
11
+ eta = 0.55
12
+ # Singular value truncation fraction (1.0 = keep all, 'top1' = keep only top-1)
13
+ k = 1.0
14
+ # Perturbation clamp range
15
+ delta_lower = -1.0
16
+ delta_upper = 1.0
17
+ # Batch size for frame processing
18
+ batch_size = 30
19
+ # Loss weights
20
+ loss_weight_fg = 1.0
21
+ loss_weight_bg = -1.0
22
+ loss_weight_conf = 0.001
23
+
24
+ [data]
25
+ # COCO dataset root
26
+ coco_root = "/mnt/forge-data/datasets/coco"
27
+ # Pre-computed DINOv2 features
28
+ dinov2_features = "/mnt/forge-data/shared_infra/datasets/coco_dinov2_features"
29
+ # Image split to use
30
+ split = "val2017"
31
+ # Max images to load (0 = all)
32
+ max_images = 500
33
+ # Target image size (height, width)
34
+ image_size = [640, 640]
35
+
36
+ [model]
37
+ # Target detector
38
+ detector = "maskrcnn_resnet50_fpn"
39
+ # Use pretrained weights
40
+ pretrained = true
41
+ # Target class ID (1 = person in COCO)
42
+ target_class = 1
43
+
44
+ [training]
45
+ # Device
46
+ device = "cuda:0"
47
+ # Mixed precision
48
+ amp = true
49
+ # Gradient accumulation steps
50
+ grad_accum_steps = 1
51
+ # Checkpoint save interval (iterations)
52
+ save_interval = 25
53
+ # Output directory
54
+ output_dir = "/mnt/artifacts-datai/checkpoints/DEF-aoexp"
55
+ # Log directory
56
+ log_dir = "/mnt/artifacts-datai/logs/DEF-aoexp"
57
+
58
+ [export]
59
+ # Export directory
60
+ export_dir = "/mnt/artifacts-datai/exports/DEF-aoexp"
61
+ # ONNX opset version
62
+ onnx_opset = 17
63
+ # TensorRT workspace size (GB)
64
+ trt_workspace_gb = 4