Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clashsan/portable_stable_diffusion.openvino
your models placeable in a folder, works when completely offline, uses venv
https://github.com/clashsan/portable_stable_diffusion.openvino
Last synced: 18 days ago
JSON representation
your models placeable in a folder, works when completely offline, uses venv
- Host: GitHub
- URL: https://github.com/clashsan/portable_stable_diffusion.openvino
- Owner: ClashSAN
- License: apache-2.0
- Created: 2022-11-17T20:09:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T02:51:27.000Z (almost 2 years ago)
- Last Synced: 2023-08-03T14:14:46.847Z (over 1 year ago)
- Language: Python
- Size: 5.84 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Step 1
Download the files all from huggingface and place them into the "local" folder. There are two models available:
- https://huggingface.co/bes-dev/stable-diffusion-v1-4-openvino/tree/main
- https://huggingface.co/ShadowPower/waifu-diffusion.openvino/tree/main
## Step 2
Extract the zip file and delete the zip file.
You should have a "venv" folder alongside run.bat and other files.
## Step 3
Double click run.bat.
## Step 3
Write a prompt. Enter this in the terminal that pops up as an example:python demo.py --prompt "frog on a log" --num-inference-steps 8
Select sampler(scheduler) and more:
python demo.py --prompt "a photo of a dog" --unprompt "trees, people, low quality" --scheduler DDIM --num-inference-steps 8 --seed 5
## Step 4
After running for the first time, huggingface caches files in username\.cache\huggingface\transformers.To fully use offline change the 0 to 1 in: `venv/lib/python3.9/site-packages/transformers/file_utils.py` line 328:
_is_offline_mode = True if os.environ.get("TRANSFORMERS_OFFLINE", "0").upper() in ENV_VARS_TRUE_VALUES else False
This gets rid of the error when you are not connected to wifi.
## About
This repository does two things: It makes the codebase and models portable and offline for use with usb, ssds. It allows DDIM sampler and negative prompts, as taken from [Drake53's repository](https://github.com/Drake53/stable_diffusion.openvino). DDIM sampler often converges at lower steps (8), making image generation alot quicker.## Testing
This needs 16gb of ram to run smoothly. If you are using 8 gb, you will end up using ROM storage of your hard drive or solid state drive. It is highly discouraged to use (spinning disk)hard drive, tests show 126 seconds per iteration step. For 8 gb ram users: see [this page](https://github.com/ClashSAN/portable_stable_diffusion.openvino/wiki)## Credit
This repository code is from https://github.com/Drake53/stable_diffusion.openvino and is a fork of https://github.com/bes-dev/stable_diffusion.openvino