Spaces:
Running on Zero
Running on Zero
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -7,8 +7,11 @@ sdk: gradio
|
|
| 7 |
python_version: "3.10"
|
| 8 |
app_file: app.py
|
| 9 |
suggested_hardware: a100-large
|
|
|
|
|
|
|
| 10 |
models:
|
| 11 |
- SynLayers/Bbox-caption-8b
|
|
|
|
| 12 |
pinned: false
|
| 13 |
---
|
| 14 |
|
|
@@ -21,6 +24,21 @@ This folder now contains a unified real-world inference demo:
|
|
| 21 |
3. `demo/real_world_pipeline.py` stitches the two stages together for one uploaded image.
|
| 22 |
4. `demo/app.py` provides a Gradio interface that can be used locally or adapted for a Hugging Face Space.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## Local Run
|
| 25 |
|
| 26 |
From the `SynLayers` root:
|
|
|
|
| 7 |
python_version: "3.10"
|
| 8 |
app_file: app.py
|
| 9 |
suggested_hardware: a100-large
|
| 10 |
+
startup_duration_timeout: 2h
|
| 11 |
+
short_description: "GPU Space for SynLayers real-world layer decomposition"
|
| 12 |
models:
|
| 13 |
- SynLayers/Bbox-caption-8b
|
| 14 |
+
- black-forest-labs/FLUX.1-dev
|
| 15 |
pinned: false
|
| 16 |
---
|
| 17 |
|
|
|
|
| 24 |
3. `demo/real_world_pipeline.py` stitches the two stages together for one uploaded image.
|
| 25 |
4. `demo/app.py` provides a Gradio interface that can be used locally or adapted for a Hugging Face Space.
|
| 26 |
|
| 27 |
+
## Full GPU Space
|
| 28 |
+
|
| 29 |
+
For a production Hugging Face Space, use GPU hardware and set:
|
| 30 |
+
|
| 31 |
+
```text
|
| 32 |
+
SYNLAYERS_MODEL_REPO=SynLayers/Bbox-caption-8b
|
| 33 |
+
SYNLAYERS_BASE_MODEL=black-forest-labs/FLUX.1-dev
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
This lets the Space:
|
| 37 |
+
|
| 38 |
+
- load the bbox detector from your uploaded model repo
|
| 39 |
+
- load the SynLayers adapter, LoRA, transparent VAE, and `step_120000` checkpoint from your uploaded repo
|
| 40 |
+
- use the official Hugging Face FLUX base model instead of re-downloading your own uploaded copy
|
| 41 |
+
|
| 42 |
## Local Run
|
| 43 |
|
| 44 |
From the `SynLayers` root:
|