csaybar commited on
Commit
b69e4dc
·
verified ·
1 Parent(s): 9792028

Upload 2 files

Browse files
NonReference_RGBN_x4/load.py CHANGED
@@ -29,7 +29,6 @@ config = {
29
  "attn_resolutions": [],
30
  "dropout": 0.0
31
  },
32
-
33
  "cond_stage_config": {
34
  "image_size": 64,
35
  "in_channels": 8,
@@ -40,7 +39,6 @@ config = {
40
  "channel_mult": [1, 2, 2, 4],
41
  "num_head_channels": 32
42
  },
43
-
44
  "other": {
45
  "concat_mode": True,
46
  "cond_stage_trainable": False,
@@ -56,7 +54,7 @@ def example_data(path: pathlib.Path, device: str = "cuda:0", *args, **kwargs):
56
  sample = safetensors.torch.load_file(data_f)
57
  return sample["lr"].to(device), sample["hr"].to(device)
58
 
59
- def trainable_model(path, device: str = "cuda:0", *args, **kwargs):
60
  print("Trainable model is not available for this model.")
61
  return None
62
 
 
29
  "attn_resolutions": [],
30
  "dropout": 0.0
31
  },
 
32
  "cond_stage_config": {
33
  "image_size": 64,
34
  "in_channels": 8,
 
39
  "channel_mult": [1, 2, 2, 4],
40
  "num_head_channels": 32
41
  },
 
42
  "other": {
43
  "concat_mode": True,
44
  "cond_stage_trainable": False,
 
54
  sample = safetensors.torch.load_file(data_f)
55
  return sample["lr"].to(device), sample["hr"].to(device)
56
 
57
+ def trainable_model(*args, **kwargs):
58
  print("Trainable model is not available for this model.")
59
  return None
60
 
NonReference_RGBN_x4/mlm.json CHANGED
@@ -119,7 +119,7 @@
119
  "links": [],
120
  "assets": {
121
  "trainable": {
122
- "href": "https://huggingface.co/tacofoundation/RS-SR-LTDF/resolve/main/NonReference_RGBN_x4/model.safetensor",
123
  "type": "application/octet-stream; application=safetensor",
124
  "title": "Pytorch model weights checkpoint",
125
  "description": "The weights of the model in safetensor format.",
@@ -131,7 +131,7 @@
131
  ]
132
  },
133
  "hardconstraint": {
134
- "href": "https://huggingface.co/tacofoundation/RS-SR-LTDF/resolve/main/NonReference_RGBN_x4/hard_constraint.safetensor",
135
  "type": "application/octet-stream; application=safetensor",
136
  "title": "Pytorch hard constraint weights checkpoint. It is used to load faster the hard constraint module.",
137
  "description": "The weights of the model in safetensor format.",
@@ -143,7 +143,7 @@
143
  ]
144
  },
145
  "source_code": {
146
- "href": "https://huggingface.co/tacofoundation/RS-SR-LTDF/resolve/main/NonReference_RGBN_x4/load.py",
147
  "type": "text/x-python",
148
  "title": "Model load script",
149
  "description": "Python script to load the model.",
@@ -153,7 +153,7 @@
153
  ]
154
  },
155
  "example_data": {
156
- "href": "https://huggingface.co/tacofoundation/RS-SR-LTDF/resolve/main/NonReference_RGBN_x4/example_data.safetensor",
157
  "type": "application/octet-stream; application=safetensors",
158
  "title": "Example Sentinel-2 image",
159
  "description": "Example Sentinel-2 image for model inference.",
 
119
  "links": [],
120
  "assets": {
121
  "trainable": {
122
+ "href": "https://huggingface.co/tacofoundation/tacofoundation/resolve/main/RS-SR-LTDF/NonReference_RGBN_x4/model.safetensor",
123
  "type": "application/octet-stream; application=safetensor",
124
  "title": "Pytorch model weights checkpoint",
125
  "description": "The weights of the model in safetensor format.",
 
131
  ]
132
  },
133
  "hardconstraint": {
134
+ "href": "https://huggingface.co/tacofoundation/tacofoundation/resolve/main/RS-SR-LTDF/NonReference_RGBN_x4/hard_constraint.safetensor",
135
  "type": "application/octet-stream; application=safetensor",
136
  "title": "Pytorch hard constraint weights checkpoint. It is used to load faster the hard constraint module.",
137
  "description": "The weights of the model in safetensor format.",
 
143
  ]
144
  },
145
  "source_code": {
146
+ "href": "https://huggingface.co/tacofoundation/tacofoundation/resolve/main/RS-SR-LTDF/NonReference_RGBN_x4/load.py",
147
  "type": "text/x-python",
148
  "title": "Model load script",
149
  "description": "Python script to load the model.",
 
153
  ]
154
  },
155
  "example_data": {
156
+ "href": "https://huggingface.co/tacofoundation/tacofoundation/resolve/main/RS-SR-LTDF/NonReference_RGBN_x4/example_data.safetensor",
157
  "type": "application/octet-stream; application=safetensors",
158
  "title": "Example Sentinel-2 image",
159
  "description": "Example Sentinel-2 image for model inference.",