Spaces:
Runtime error
Runtime error
Added Style embeddings
Browse files- main_inference.py +2 -2
- requirements.txt +32 -13
main_inference.py
CHANGED
@@ -14,7 +14,7 @@ import os
|
|
14 |
from utils import color_loss,latents_to_pil,pil_to_latent,sketch_loss
|
15 |
# Set device
|
16 |
torch_device = "cpu"
|
17 |
-
|
18 |
vae = AutoencoderKL.from_pretrained("CompVis/stable-diffusion-v1-4", subfolder="vae")
|
19 |
|
20 |
# Load the tokenizer and text encoder to tokenize and encode the text.
|
@@ -226,4 +226,4 @@ def generate_noised_version_of_image(pil_image):
|
|
226 |
# #pil_image = generate_image(prompt,color_postprocessing,color_loss_scale)
|
227 |
# #pil_image = generate_noised_version_of_image(Image.open('output.png').resize((512, 512)))
|
228 |
# pil_image.save("output1.png")
|
229 |
-
|
|
|
14 |
from utils import color_loss,latents_to_pil,pil_to_latent,sketch_loss
|
15 |
# Set device
|
16 |
torch_device = "cpu"
|
17 |
+
|
18 |
vae = AutoencoderKL.from_pretrained("CompVis/stable-diffusion-v1-4", subfolder="vae")
|
19 |
|
20 |
# Load the tokenizer and text encoder to tokenize and encode the text.
|
|
|
226 |
# #pil_image = generate_image(prompt,color_postprocessing,color_loss_scale)
|
227 |
# #pil_image = generate_noised_version_of_image(Image.open('output.png').resize((512, 512)))
|
228 |
# pil_image.save("output1.png")
|
229 |
+
|
requirements.txt
CHANGED
@@ -1,13 +1,32 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
albumentations==1.3.1
|
2 |
+
annoy==1.17.3
|
3 |
+
backports.functools-lru-cache==1.6.5
|
4 |
+
black==23.7.0
|
5 |
+
brotlipy==0.7.0
|
6 |
+
clip==1.0
|
7 |
+
clip-rerank==0.1.0
|
8 |
+
conda-content-trust==0.1.3
|
9 |
+
conda-libmamba-solver==23.5.0
|
10 |
+
datasets==2.14.4
|
11 |
+
diffusers==0.2.4
|
12 |
+
gensim==4.3.0
|
13 |
+
grad-cam==1.4.8
|
14 |
+
gradio==3.45.2
|
15 |
+
ipykernel==6.25.1
|
16 |
+
kaggle==1.5.16
|
17 |
+
lightning==2.0.6
|
18 |
+
lightning-bolts==0.7.0
|
19 |
+
lmdb==1.4.1
|
20 |
+
mkl-fft==1.3.8
|
21 |
+
mkl-random==1.2.4
|
22 |
+
open-clip-torch==2.20.0
|
23 |
+
pip-chill==1.0.3
|
24 |
+
pixelator==1.1.0
|
25 |
+
pre-commit==3.3.3
|
26 |
+
pydeprecate==0.3.2
|
27 |
+
pysocks==1.7.1
|
28 |
+
ruamel.yaml==0.17.21
|
29 |
+
seaborn==0.12.2
|
30 |
+
sentence-transformers==2.2.2
|
31 |
+
torch-lr-finder==0.2.1
|
32 |
+
torchinfo==1.8.0
|