Instructions to use benetraco/latent_scratch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use benetraco/latent_scratch with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("benetraco/latent_scratch", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ This model is a diffusion-based model for unconditional image generation of **la
|
|
| 19 |
- **Resolution:** Latent resolution of 32x32 to generate 256x256 final images
|
| 20 |
- **Dataset:** Lesion2D VH split (FLAIR MRI slices) (70% of the dataset)
|
| 21 |
- **Channels:** 4 (latents are multi-channel representations of the original images)
|
| 22 |
-
- **Epochs:**
|
| 23 |
- **Batch size:** 16
|
| 24 |
- **Optimizer:** AdamW with:
|
| 25 |
- Learning Rate: `1.0e-4`
|
|
@@ -35,7 +35,7 @@ This model is a diffusion-based model for unconditional image generation of **la
|
|
| 35 |
- `beta_start`: 0.0001
|
| 36 |
- `beta_end`: 0.02
|
| 37 |
- **Hardware:** Trained on **NVIDIA GPUs** with a distributed dataloader using 12 workers.
|
| 38 |
-
- **Memory Consumption:** Approx. **
|
| 39 |
|
| 40 |
## U-Net Architecture
|
| 41 |
- **Down Blocks:** [DownBlock2D, DownBlock2D, DownBlock2D, DownBlock2D, AttnDownBlock2D, DownBlock2D]
|
|
|
|
| 19 |
- **Resolution:** Latent resolution of 32x32 to generate 256x256 final images
|
| 20 |
- **Dataset:** Lesion2D VH split (FLAIR MRI slices) (70% of the dataset)
|
| 21 |
- **Channels:** 4 (latents are multi-channel representations of the original images)
|
| 22 |
+
- **Epochs:** 100
|
| 23 |
- **Batch size:** 16
|
| 24 |
- **Optimizer:** AdamW with:
|
| 25 |
- Learning Rate: `1.0e-4`
|
|
|
|
| 35 |
- `beta_start`: 0.0001
|
| 36 |
- `beta_end`: 0.02
|
| 37 |
- **Hardware:** Trained on **NVIDIA GPUs** with a distributed dataloader using 12 workers.
|
| 38 |
+
- **Memory Consumption:** Approx. **2.5 GB** during training.
|
| 39 |
|
| 40 |
## U-Net Architecture
|
| 41 |
- **Down Blocks:** [DownBlock2D, DownBlock2D, DownBlock2D, DownBlock2D, AttnDownBlock2D, DownBlock2D]
|