File size: 1,507 Bytes
88446ba f1f0fc8 dfe10a3 88446ba f1f0fc8 2a1996c dfe10a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
---
license: creativeml-openrail-m
tags:
- stable-diffusion
- aiartchan
---
Mixed stable diffusion models from the ai image channel and elsewhere. Feel free to download.
## file download code example
```python
# urlretrieve, no progressbar
from urllib.request import urlretrieve
from huggingface_hub import hf_hub_url
repo_id = "AIARTCHAN/aichan_blend"
filename = "AbyssOrangeMix2_nsfw-pruned.safetensors"
url = hf_hub_url(repo_id, filename)
urlretrieve(url, filename)
```
```python
# with tqdm, urllib
import shutil
from urllib.request import urlopen
from huggingface_hub import hf_hub_url
from tqdm import tqdm
repo_id = "AIARTCHAN/aichan_blend"
filename = "AbyssOrangeMix2_nsfw-pruned.safetensors"
url = hf_hub_url(repo_id, filename)
with urlopen(url) as resp:
total = int(resp.headers.get("Content-Length", 0))
with tqdm.wrapattr(
resp, "read", total=total, desc="Download..."
) as src:
with open(filename, "wb") as dst:
shutil.copyfileobj(src, dst)
```
```python
# with tqdm, requests
import shutil
import requests
from huggingface_hub import hf_hub_url
from tqdm import tqdm
repo_id = "AIARTCHAN/aichan_blend"
filename = "AbyssOrangeMix2_nsfw-pruned.safetensors"
url = hf_hub_url(repo_id, filename)
resp = requests.get(url, stream=True)
total = int(resp.headers.get("Content-Length", 0))
with tqdm.wrapattr(
resp.raw, "read", total=total, desc="Download..."
) as src:
with open(filename, "wb") as dst:
shutil.copyfileobj(src, dst)
``` |