Instructions to use sttkw/TAID-Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sttkw/TAID-Models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("sttkw/TAID-Models", 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
|
Download README.md from sttkw/TAID-Models: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/sttkw/TAID-Models/resolve/main/README.md
- Command line
-
hf download hf://sttkw/TAID-Models/README.md
-
curl -L -o README.md https://huggingface.co/sttkw/TAID-Models/resolve/main/README.md
1.5 kB
metadata
license: mit
library_name: diffusers
base_model: timbrooks/instruct-pix2pix
datasets:
- sttkw/TAID-Dataset
- sttkw/TAID-AtmosEdit
tags:
- intrinsic-decomposition
- terrain
- atmosphere
TAID Models
Pretrained weights for Atmosphere-Aware Intrinsic Decomposition from a Single Terrain Image with Latent Diffusion Models.
- Code: https://github.com/sttkw/terrain-atmospheric-intrinsic-decomposition
- Project page: https://sttkw.github.io/terrain-atmospheric-intrinsic-decomposition/
| Path | Description |
|---|---|
decomposition/unet/ |
Intrinsic decomposition U-Net (InstructPix2Pix fine-tune, step 18,000). Predicts Albedo, Diffuse Shading, Specular Shading and Volume. |
decomposition/terrain_decomposition_config.json |
Inference metadata (resolution, target encodings). |
atmosphere/terrain_difference.pt |
Atmospheric editor (12ch → 9ch U-Net) that changes D, S and V for new air / aerosol / ozone densities. |
The decomposition U-Net is loaded on top of the other components of
timbrooks/instruct-pix2pix (VAE, text encoder, tokenizer, scheduler).
Usage
git clone https://github.com/sttkw/terrain-atmospheric-intrinsic-decomposition
cd terrain-atmospheric-intrinsic-decomposition
pip install -r requirements.txt
python demo.py --input_image demo_image/test1.jpg --water_mask demo_image/test1.png \
--p_control 0 -3 0 --output_dir outputs/demo/test1
demo.py downloads these weights automatically.
License
MIT, same as the code.