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 tests/test_docs.py from roshikhan301/NEWONE1: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/roshikhan301/NEWONE1/resolve/main/tests/test_docs.py
- Command line
-
hf download hf://roshikhan301/NEWONE1/tests/test_docs.py
-
curl -L -o test_docs.py https://huggingface.co/roshikhan301/NEWONE1/resolve/main/tests/test_docs.py
697 Bytes
| from invokeai.app.services.config.config_default import InvokeAIAppConfig | |
| from scripts.update_config_docstring import generate_config_docstrings | |
| def test_app_config_docstrings_are_current(): | |
| # If this test fails, run `python scripts/update_config_docstring.py`. See the comments in that script for | |
| # an explanation of why this is necessary. | |
| # | |
| # A make target is provided to run the script: `make update-config-docstring`. | |
| assert InvokeAIAppConfig.__doc__ is not None | |
| generated_docstring = generate_config_docstrings() | |
| formatted_dunder_docstring = f' """{InvokeAIAppConfig.__doc__.strip()}\n """' | |
| assert generated_docstring == formatted_dunder_docstring | |