Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -106,7 +106,7 @@ def generate2(prompt,crazy,k):
|
|
106 |
mm = MinDalle(
|
107 |
models_root='./pretrained',
|
108 |
dtype=torch.float32,
|
109 |
-
device='
|
110 |
is_mega=False,
|
111 |
is_reusable=False
|
112 |
)
|
@@ -119,7 +119,7 @@ def generate2(prompt,crazy,k):
|
|
119 |
is_seamless=False,
|
120 |
temperature=crazy,
|
121 |
top_k=k,#2128,
|
122 |
-
supercondition_factor=
|
123 |
is_verbose=False
|
124 |
)
|
125 |
|
|
|
106 |
mm = MinDalle(
|
107 |
models_root='./pretrained',
|
108 |
dtype=torch.float32,
|
109 |
+
device='cpu',
|
110 |
is_mega=False,
|
111 |
is_reusable=False
|
112 |
)
|
|
|
119 |
is_seamless=False,
|
120 |
temperature=crazy,
|
121 |
top_k=k,#2128,
|
122 |
+
supercondition_factor=16,
|
123 |
is_verbose=False
|
124 |
)
|
125 |
|