Instructions to use dream-textures/texture-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use dream-textures/texture-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("dream-textures/texture-diffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "pbr brick wall" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
5408802
1
Parent(s): 7ed6cd2
Update README.md
Browse files123---license: openrail++---1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950---license: openrail++---# Texture DiffusionThis DreamBooth model is fine-tuned for diffuse textures. It produces flat textures with very little visible lighting/shadows.## SamplesHere are a few example images (generated with 50 steps).| pbr uneven stone wall | pbr dirt with weeds | pbr bright white marble || --- | --- | --- ||  |  |  |## UsageUse the token `pbr` in your prompts to invoke the style.This model was made for use in [Dream Textures](https://github.com/carson-katri/dream-textures), a Stable Diffusion add-on for Blender.You can also use it with [🧨 diffusers](https://github.com/huggingface/diffusers):```pythonfrom diffusers import StableDiffusionPipelineimport torchmodel_id = "dream-textures/texture-diffusion"pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)pipe = pipe.to("cuda")prompt = "pbr brick wall"image = pipe(prompt).images[0]image.save("bricks.png")```## Training Details* Base Model: [stabilityai/stable-diffusion-2-base](https://huggingface.co/stabilityai/stable-diffusion-2-base)* Resolution: `512`* Prior Loss Weight: `1.0`* Class Prompt: `texture`* Batch Size: `1`* Learning Rate: `1e-6`* Precision: `fp16`* Steps: `4000`* GPU: Tesla T4### DatasetThis model was trained on 278 CC0 textures from [PolyHaven](https://polyhaven.com/).
README.md+47