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 docs/features/database.md from roshikhan301/NEWONE1: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/roshikhan301/NEWONE1/resolve/main/docs/features/database.md
- Command line
-
hf download hf://roshikhan301/NEWONE1/docs/features/database.md
-
curl -L -o database.md https://huggingface.co/roshikhan301/NEWONE1/resolve/main/docs/features/database.md
1.37 kB
| title: Database | |
| Invoke uses a SQLite database to store image, workflow, model, and execution data. | |
| We take great care to ensure your data is safe, by utilizing transactions and a database migration system. | |
| Even so, when testing a prerelease version of the app, we strongly suggest either backing up your database or using an in-memory database. This ensures any prelease hiccups or databases schema changes will not cause problems for your data. | |
| ## Database Backup | |
| Backing up your database is very simple. Invoke's data is stored in an `$INVOKEAI_ROOT` directory - where your `invoke.sh`/`invoke.bat` and `invokeai.yaml` files live. | |
| To back up your database, copy the `invokeai.db` file from `$INVOKEAI_ROOT/databases/invokeai.db` to somewhere safe. | |
| If anything comes up during prelease testing, you can simply copy your backup back into `$INVOKEAI_ROOT/databases/`. | |
| ## In-Memory Database | |
| SQLite can run on an in-memory database. Your existing database is untouched when this mode is enabled, but your existing data won't be accessible. | |
| This is very useful for testing, as there is no chance of a database change modifying your "physical" database. | |
| To run Invoke with a memory database, edit your `invokeai.yaml` file and add `use_memory_db: true`: | |
| ```yaml | |
| use_memory_db: true | |
| ``` | |
| Delete this line (or set it to `false`) to use your main database. | |