Instructions to use roshikhan301/NEWONE1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use roshikhan301/NEWONE1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("roshikhan301/NEWONE1", 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 scripts/invokeai-web.py from roshikhan301/NEWONE1: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/roshikhan301/NEWONE1/resolve/main/scripts/invokeai-web.py
- Command line
-
hf download hf://roshikhan301/NEWONE1/scripts/invokeai-web.py
-
curl -L -o invokeai-web.py https://huggingface.co/roshikhan301/NEWONE1/resolve/main/scripts/invokeai-web.py
473 Bytes
| #!/usr/bin/env python | |
| # Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654) | |
| import logging | |
| import os | |
| from invokeai.app.run_app import run_app | |
| logging.getLogger("xformers").addFilter(lambda record: "A matching Triton is not available" not in record.getMessage()) | |
| def main(): | |
| # Change working directory to the repo root | |
| os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) | |
| run_app() | |
| if __name__ == "__main__": | |
| main() | |