callum-canavan
commited on
Commit
•
575862a
1
Parent(s):
6dc85c9
Update test
Browse files- test.py +11 -8
- visual_anagrams/samplers.py +1 -1
test.py
CHANGED
@@ -1,12 +1,15 @@
|
|
1 |
from app import generate_content
|
|
|
2 |
|
3 |
if __name__ == "__main__":
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
|
|
|
1 |
from app import generate_content
|
2 |
+
from visual_anagrams.views import VIEW_MAP_NAMES
|
3 |
|
4 |
if __name__ == "__main__":
|
5 |
+
for view in VIEW_MAP_NAMES:
|
6 |
+
print(view)
|
7 |
+
print(generate_content(
|
8 |
+
"a painting of",
|
9 |
+
"vases",
|
10 |
+
"a sloth",
|
11 |
+
view,
|
12 |
+
1,
|
13 |
+
0
|
14 |
+
))
|
15 |
|
visual_anagrams/samplers.py
CHANGED
@@ -42,7 +42,7 @@ def sample_stage_1(model,
|
|
42 |
prompt_embeds.dtype,
|
43 |
device,
|
44 |
generator,
|
45 |
-
)
|
46 |
# ic(noisy_images.shape)
|
47 |
|
48 |
for i, t in enumerate(tqdm(timesteps)):
|
|
|
42 |
prompt_embeds.dtype,
|
43 |
device,
|
44 |
generator,
|
45 |
+
).to('cuda')
|
46 |
# ic(noisy_images.shape)
|
47 |
|
48 |
for i, t in enumerate(tqdm(timesteps)):
|