TerraTorch
mgazz commited on
Commit
77708ae
·
verified ·
1 Parent(s): 832ea53

Add config.json to run the model in vLLM

Browse files
Files changed (1) hide show
  1. config.json +72 -0
config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "PrithviGeoSpatialMAE"
4
+ ],
5
+ "num_classes": 0,
6
+ "pretrained_cfg": {
7
+ "input":{
8
+ "target": "pixel_values",
9
+ "data":{
10
+ "pixel_values":{
11
+ "type": "torch.Tensor",
12
+ "shape": [6, 512, 512]
13
+ },
14
+ "location_coords":{
15
+ "type":"torch.Tensor",
16
+ "shape": [1, 2]
17
+ }
18
+ }
19
+ },
20
+ "model": {
21
+ "class_path": "terratorch.tasks.SemanticSegmentationTask",
22
+ "init_args": {
23
+ "model_factory": "EncoderDecoderFactory",
24
+ "model_args": {
25
+ "backbone": "prithvi_eo_v2_300",
26
+ "backbone_pretrained": true,
27
+ "backbone_bands": [
28
+ "BLUE",
29
+ "GREEN",
30
+ "RED",
31
+ "NIR_NARROW",
32
+ "SWIR_1",
33
+ "SWIR_2"
34
+ ],
35
+ "necks": [
36
+ {
37
+ "name": "SelectIndices",
38
+ "indices": [
39
+ 5,
40
+ 11,
41
+ 17,
42
+ 23
43
+ ]
44
+ },
45
+ {
46
+ "name": "ReshapeTokensToImage"
47
+ },
48
+ {
49
+ "name": "LearnedInterpolateToPyramidal"
50
+ }
51
+ ],
52
+ "decoder": "UNetDecoder",
53
+ "decoder_channels": [
54
+ 512,
55
+ 256,
56
+ 128,
57
+ 64
58
+ ],
59
+ "num_classes": 2
60
+ },
61
+ "loss": "ce",
62
+ "ignore_index": -1,
63
+ "freeze_backbone": false,
64
+ "plot_on_val": false,
65
+ "class_names": [
66
+ "Not burned",
67
+ "Burn scar"
68
+ ]
69
+ }
70
+ }
71
+ }
72
+ }