Instructions to use AIhgenerator/anythingv4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AIhgenerator/anythingv4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AIhgenerator/anythingv4", 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 venv/Scripts/deactivate.bat from AIhgenerator/anythingv4: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/AIhgenerator/anythingv4/resolve/main/venv/Scripts/deactivate.bat
- Command line
-
hf download hf://AIhgenerator/anythingv4/venv/Scripts/deactivate.bat
-
curl -L -o deactivate.bat https://huggingface.co/AIhgenerator/anythingv4/resolve/main/venv/Scripts/deactivate.bat
537 Bytes
| @set VIRTUAL_ENV= | |
| @set VIRTUAL_ENV_PROMPT= | |
| @REM Don't use () to avoid problems with them in %PATH% | |
| @if not defined _OLD_VIRTUAL_PROMPT @goto ENDIFVPROMPT | |
| @set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | |
| @set _OLD_VIRTUAL_PROMPT= | |
| :ENDIFVPROMPT | |
| @if not defined _OLD_VIRTUAL_PYTHONHOME @goto ENDIFVHOME | |
| @set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" | |
| @set _OLD_VIRTUAL_PYTHONHOME= | |
| :ENDIFVHOME | |
| @if not defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH | |
| @set "PATH=%_OLD_VIRTUAL_PATH%" | |
| @set _OLD_VIRTUAL_PATH= | |
| :ENDIFVPATH | |