minor bug
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def gen(md, model_name, seed, nb_iter, nb_samples, width, height, nb_active, onl
|
|
14 |
torch.manual_seed(int(seed))
|
15 |
bs = 64
|
16 |
model = models[model_name]
|
17 |
-
if
|
18 |
model.nb_active = nb_active
|
19 |
samples = iterative_refinement(
|
20 |
model,
|
|
|
14 |
torch.manual_seed(int(seed))
|
15 |
bs = 64
|
16 |
model = models[model_name]
|
17 |
+
if model_name == "Dense K-Sparse":
|
18 |
model.nb_active = nb_active
|
19 |
samples = iterative_refinement(
|
20 |
model,
|