Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,15 @@ import yaml
|
|
34 |
from omegaconf import OmegaConf
|
35 |
from CLIP import clip
|
36 |
import os
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
38 |
from taming.models.vqgan import VQModel
|
39 |
-
|
|
|
40 |
from PIL import Image
|
41 |
import cv2
|
42 |
import imageio
|
|
|
34 |
from omegaconf import OmegaConf
|
35 |
from CLIP import clip
|
36 |
import os
|
37 |
+
|
38 |
+
#os.chdir('./taming-transformers')
|
39 |
+
#from taming.models.vqgan import VQModel
|
40 |
+
#os.chdir('..')
|
41 |
+
taming_path = os.path.join(os.getcwd(), 'taming-transformers')
|
42 |
+
sys.path.append(taming_path)
|
43 |
from taming.models.vqgan import VQModel
|
44 |
+
|
45 |
+
|
46 |
from PIL import Image
|
47 |
import cv2
|
48 |
import imageio
|