tennant commited on
Commit
05280f7
·
verified ·
1 Parent(s): 275034c

Update gen_demo.py

Browse files
Files changed (1) hide show
  1. gen_demo.py +1 -1
gen_demo.py CHANGED
@@ -119,7 +119,7 @@ num_slots_to_gen = 32
119
  # Function to generate image from class
120
  def generate_from_class(class_id, cfg_scale):
121
  with torch.no_grad():
122
- dtype = torch.bfloat16
123
  num_slots_to_gen = 32
124
  with torch.autocast(device, dtype=dtype):
125
  slots_gen = generate(
 
119
  # Function to generate image from class
120
  def generate_from_class(class_id, cfg_scale):
121
  with torch.no_grad():
122
+ dtype = torch.float
123
  num_slots_to_gen = 32
124
  with torch.autocast(device, dtype=dtype):
125
  slots_gen = generate(