Nosiopd commited on
Commit
09a70d1
·
verified ·
1 Parent(s): 027bf87

Upload dinov2-2streams.yaml

Browse files
Files changed (1) hide show
  1. dinov2-2streams.yaml +37 -0
dinov2-2streams.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ base_path = '/kaggle/input/csiro-biomass/'
2
+
3
+ train_path = os.path.join(base_path, 'train')
4
+ test_path = os.path.join(base_path, 'test')
5
+ test_csv_path = os.path.join(base_path, 'test.csv')
6
+ train_csv_path = os.path.join(base_path, 'train.csv')
7
+ data_dir = os.path.join(base_path, "")
8
+ nFolds = 5
9
+ seed = 42
10
+ pretrained = False
11
+ pretrained_weights_path = os.path.join(base_path, "")
12
+ best_model_dir = "/kaggle/input/dinov2-training"
13
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
+ epochs = 15
15
+ batch_size = 8
16
+ lr = 1e-3
17
+ eta_min = 1e-5
18
+ weight_decay = 1e-6
19
+
20
+ # image
21
+ img_size_h = 448 # 224
22
+ img_size_w = 448 # 224
23
+ in_chans = 3
24
+
25
+ # target columns
26
+ target_cols = [
27
+ "Dry_Clover_g",
28
+ "Dry_Dead_g",
29
+ "Dry_Green_g",
30
+ "Dry_Total_g",
31
+ "GDM_g"
32
+ ]
33
+ n_targets = 3
34
+ # we can predict multiple configs
35
+ targets_configs = ["Dry_Clover_g", "Dry_Dead_g", "Dry_Green_g"]
36
+ weights = np.array([0.1, 0.1, 0.1, 0.5, 0.2])
37
+ mapping = {"Dry_Clover_g": 0, "Dry_Dead_g": 1, "Dry_Green_g": 2, "Dry_Total_g": 3, "GDM_g": 4}