mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-13 00:15:35 +08:00
works at work
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ dist
|
||||
/env
|
||||
a.out
|
||||
boxes.jpg
|
||||
weights/*
|
||||
|
||||
@@ -162,13 +162,15 @@ PROPROTIP: Set "DEBUG=1" environment variable if you want to see why it's slow.
|
||||
|
||||
### tinygrad supports Stable Diffusion!
|
||||
|
||||
Run `LAZY=0 OPT=2 TORCH=1 python3 examples/stable_diffusion.py`
|
||||
Run `TORCH=1 python3 examples/stable_diffusion.py`
|
||||
|
||||
<p align="center">
|
||||
<img src="https://raw.githubusercontent.com/geohot/tinygrad/master/docs/stable_diffusion_by_tinygrad.jpg">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
"a horse sized cat eating a bagel"
|
||||
</p>
|
||||
|
||||
### tinygrad supports GANs
|
||||
|
||||
|
||||
@@ -516,7 +516,8 @@ class StableDiffusion:
|
||||
|
||||
# this is sd-v1-4.ckpt
|
||||
#FILENAME = "/Users/kafka/fun/mps/stable-diffusion/models/ldm/stable-diffusion-v1/model.ckpt"
|
||||
FILENAME = "/home/kafka/model.ckpt"
|
||||
#FILENAME = "/home/kafka/model.ckpt"
|
||||
FILENAME = "weights/sd-v1-4.ckpt"
|
||||
|
||||
if __name__ == "__main__":
|
||||
Tensor.no_init = True
|
||||
|
||||
Reference in New Issue
Block a user