sttkw/TAID-Dataset
Viewer • Updated • 16k • 360
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]Pretrained weights for Atmosphere-Aware Intrinsic Decomposition from a Single Terrain Image with Latent Diffusion Models.
| 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).
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.
MIT, same as the code.
Base model
timbrooks/instruct-pix2pix