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
| # simple Makefile with scripts that are otherwise hard to remember | |
| # to use, run from the repo root `make <command>` | |
| default: help | |
| help: | |
| # Runs ruff, fixing any safely-fixable errors and formatting | |
| ruff: | |
| ruff check . --fix | |
| ruff format . | |
| # Runs ruff, fixing all errors it can fix and formatting | |
| ruff-unsafe: | |
| ruff check . --fix --unsafe-fixes | |
| ruff format . | |
| # Runs mypy, using the config in pyproject.toml | |
| mypy: | |
| mypy scripts/invokeai-web.py | |
| # Runs mypy, ignoring the config in pyproject.toml but still ignoring missing (untyped) imports | |
| # (many files are ignored by the config, so this is useful for checking all files) | |
| mypy-all: | |
| mypy scripts/invokeai-web.py --config-file= --ignore-missing-imports | |
| # Run the unit tests | |
| test: | |
| pytest ./tests | |
| # Update config docstring | |
| update-config-docstring: | |
| python scripts/update_config_docstring.py | |
| # Install the pnpm modules needed for the front end | |
| frontend-install: | |
| rm -rf invokeai/frontend/web/node_modules | |
| cd invokeai/frontend/web && pnpm install | |
| # Build the frontend | |
| frontend-build: | |
| cd invokeai/frontend/web && pnpm build | |
| # Run the frontend in dev mode | |
| frontend-dev: | |
| cd invokeai/frontend/web && pnpm dev | |
| frontend-typegen: | |
| cd invokeai/frontend/web && python ../../../scripts/generate_openapi_schema.py | pnpm typegen | |
| # Installer zip file | |
| installer-zip: | |
| cd installer && ./create_installer.sh | |
| # Tag the release | |
| tag-release: | |
| cd installer && ./tag_release.sh | |
| # Generate the OpenAPI Schema for the app | |
| openapi: | |
| python scripts/generate_openapi_schema.py | |
| # Serve the mkdocs site w/ live reload | |
| .PHONY: docs | |
| docs: | |
| mkdocs serve |