Instructions to use hazwan/vg-session with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hazwan/vg-session with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hazwan/vg-session", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download README.md from hazwan/vg-session: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/hazwan/vg-session/resolve/main/README.md
- Command line
-
hf download hf://hazwan/vg-session/README.md
-
curl -L -o README.md https://huggingface.co/hazwan/vg-session/resolve/main/README.md
1.66 kB
| license: creativeml-openrail-m | |
| thumbnail: "https://huggingface.co/dallinmackay/Van-Gogh-diffusion/resolve/main/preview1.jpg" | |
| tags: | |
| - stable-diffusion | |
| - text-to-image | |
| ### Van Gogh Diffusion | |
| This is a fine-tuned Stable Diffusion model (based on v1.5) trained on 60 paintings of Van Gogh. | |
| It is a mix of portraits and landscape. | |
| Use the token **_vangh_** in your prompts to use the style (e.g., "vangh, beautiful woman at sunset"). | |
| -- | |
| **Character rendered with this model:** | |
|  | |
| _prompt and settings used: **vangh, man** | |
| -- | |
| **Landscapes/miscellaneous rendered with this model:** | |
|  | |
| _prompt and settings used: **vangh, landscape of lake, houses and mountains** | |
| -- | |
| This model was trained with Dreambooth, using TheLastBen colab notebook | |
| -- | |
| ### 🧨 Diffusers | |
| This model can be used just like any other Stable Diffusion model. For more information, | |
| please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion). | |
| You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX](). | |
| ```python | |
| from diffusers import StableDiffusionPipeline | |
| import torch | |
| model_id = "hazwan/vg-session" | |
| pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) | |
| pipe = pipe.to("cuda") | |
| prompt = "vangh, beautiful woman at sunset" | |
| image = pipe(prompt).images[0] | |
| image.save("./woman.png") | |
| ``` | |