Spaces:
Running
on
Zero
Running
on
Zero
mikonvergence
commited on
Commit
·
acfd194
1
Parent(s):
77cad0e
spaces fix
Browse files- app.py +1 -1
- src/backend.py +1 -0
- src/utils.py +1 -5
app.py
CHANGED
@@ -10,7 +10,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
10 |
gr.HTML('<img src="file/logos/COP-GEN-logo.png" style="max-width: 300px;">')
|
11 |
gr.Markdown("# 🔵 COP-GEN-Beta: Unified Generative Modelling of COPernicus Imagery Thumbnails")
|
12 |
gr.Markdown("### Miguel Espinosa, Valerio Marsocci, Yuru Jia, Elliot J. Crowley, Mikolaj Czerkawski")
|
13 |
-
gr.Markdown('[[Website](https://miquel-espinosa.github.io/cop-gen-beta/)] [
|
14 |
gr.Markdown('> ## ⚠️ NOTE: This is a prototype Beta model of COP-GEN. It is based on image thumbnails of [[Major TOM](https://huggingface.co/Major-TOM)] and does not yet support raw source data. The hillshade visualisation is used for elevation. The full model COP-GEN is coming soon.')
|
15 |
|
16 |
with gr.Column(elem_classes="Main app"):
|
|
|
10 |
gr.HTML('<img src="file/logos/COP-GEN-logo.png" style="max-width: 300px;">')
|
11 |
gr.Markdown("# 🔵 COP-GEN-Beta: Unified Generative Modelling of COPernicus Imagery Thumbnails")
|
12 |
gr.Markdown("### Miguel Espinosa, Valerio Marsocci, Yuru Jia, Elliot J. Crowley, Mikolaj Czerkawski")
|
13 |
+
gr.Markdown('[[Website](https://miquel-espinosa.github.io/cop-gen-beta/)] [GitHub](https://github.com/miquel-espinosa/COP-GEN-Beta)] [[Model](https://huggingface.co/mespinosami/COP-GEN-Beta) [[Dataset](https://huggingface.co/Major-TOM)]')
|
14 |
gr.Markdown('> ## ⚠️ NOTE: This is a prototype Beta model of COP-GEN. It is based on image thumbnails of [[Major TOM](https://huggingface.co/Major-TOM)] and does not yet support raw source data. The hillshade visualisation is used for elevation. The full model COP-GEN is coming soon.')
|
15 |
|
16 |
with gr.Column(elem_classes="Main app"):
|
src/backend.py
CHANGED
@@ -202,6 +202,7 @@ def run_inference(config, nnet, autoencoder, img_tensors):
|
|
202 |
|
203 |
return generated_samples
|
204 |
|
|
|
205 |
def custom_inference(images, generate_modalities, condition_modalities, num_inference_steps, seed=None):
|
206 |
"""
|
207 |
Run custom inference with user-specified parameters
|
|
|
202 |
|
203 |
return generated_samples
|
204 |
|
205 |
+
@spaces.GPU
|
206 |
def custom_inference(images, generate_modalities, condition_modalities, num_inference_steps, seed=None):
|
207 |
"""
|
208 |
Run custom inference with user-specified parameters
|
src/utils.py
CHANGED
@@ -160,8 +160,4 @@ def sample_shuffle():
|
|
160 |
"""
|
161 |
grid_cell = grid_cell_df.sample().iloc[0]
|
162 |
|
163 |
-
return resize_and_crop(get_images(grid_cell))
|
164 |
-
|
165 |
-
@spaces.GPU
|
166 |
-
def generate_output():
|
167 |
-
pass
|
|
|
160 |
"""
|
161 |
grid_cell = grid_cell_df.sample().iloc[0]
|
162 |
|
163 |
+
return resize_and_crop(get_images(grid_cell))
|
|
|
|
|
|
|
|