callum-canavan commited on
Commit
575862a
1 Parent(s): 6dc85c9

Update test

Browse files
Files changed (2) hide show
  1. test.py +11 -8
  2. 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
- print(generate_content(
5
- "a painting of",
6
- "vases",
7
- "a sloth",
8
- "Flip",
9
- 1,
10
- 0
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)):