MagicaNeko commited on
Commit
cb8c81f
·
verified ·
1 Parent(s): 2d2c95c

Upload 2 files

Browse files
Files changed (2) hide show
  1. config.json +71 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "unet_with_spatial_attention",
3
+ "input_shape": [4, 384, 384],
4
+ "num_classes": 1,
5
+ "architecture": {
6
+ "encoder": {
7
+ "downsample_blocks": [
8
+ {"in_channels": 4, "out_channels": 32},
9
+ {"in_channels": 32, "out_channels": 64},
10
+ {"in_channels": 64, "out_channels": 128}
11
+ ],
12
+ "bottleneck": {"in_channels": 128, "out_channels": 256}
13
+ },
14
+ "decoder": {
15
+ "upsample_blocks": [
16
+ {"in_channels": 256, "out_channels": 128},
17
+ {"in_channels": 128, "out_channels": 64},
18
+ {"in_channels": 64, "out_channels": 32}
19
+ ]
20
+ },
21
+ "spatial_attention": {
22
+ "conv": {"in_channels": 2, "out_channels": 1, "kernel_size": 3, "padding": 1}
23
+ },
24
+ "output": {"in_channels": 32, "out_channels": 1, "kernel_size": 1}
25
+ },
26
+ "training": {
27
+ "optimizer": "Adam",
28
+ "learning_rate": 0.0008,
29
+ "weight_decay": 1e-5,
30
+ "loss_function": "BCEWithLogitsLoss",
31
+ "batch_size": 8,
32
+ "epochs": 15,
33
+ "patience": 4,
34
+ "scheduler": "ReduceLROnPlateau",
35
+ "scheduler_params": {
36
+ "mode": "min",
37
+ "factor": 0.1,
38
+ "patience": 2
39
+ }
40
+ },
41
+ "metrics": {
42
+ "validation": {
43
+ "Jaccard_index": 0.8897,
44
+ "Precision": 0.9445,
45
+ "Recall": 0.9328,
46
+ "Specificity": 0.9797,
47
+ "Overall_Accuracy": 0.9706
48
+ }
49
+ },
50
+ "data": {
51
+ "dataset_path": "../input/38cloud-cloud-segmentation-in-satellite-images/38-Cloud_training",
52
+ "input_channels": ["red", "green", "blue", "nir"],
53
+ "target": "binary_cloud_mask",
54
+ "normalization": "divide_by_max_value_uint16",
55
+ "augmentation": false,
56
+ "train_val_split": 0.8,
57
+ "image_size": [384, 384]
58
+ },
59
+ "misc": {
60
+ "device": "cuda_if_available",
61
+ "grad_clip": 1.0,
62
+ "threshold": 0.5
63
+ },
64
+ "output": {
65
+ "model_file": "pytorch_model.bin",
66
+ "visualization": {
67
+ "samples": 5,
68
+ "types": ["original_image", "ground_truth_mask", "predicted_mask"]
69
+ }
70
+ }
71
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ce58ab51bc8f658bbfdf58f5d25ba71256290ff1e935683d2e15ee3b5870563
3
+ size 7765114