Spaces:
Running
Running
Update gen_demo.py
Browse files- 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.
|
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(
|