Update app.py
Browse files
app.py
CHANGED
|
@@ -204,7 +204,7 @@ def initialize_model():
|
|
| 204 |
_reset_cache_fresh()
|
| 205 |
|
| 206 |
# Sample with the fresh noise (matching notebook: sample(model, noise, actions[:, aidx:aidx+1], ...))
|
| 207 |
-
z = sample(model_, noise, action_buf, num_steps=n_steps, cfg=cfg, negative_actions=None)
|
| 208 |
|
| 209 |
if clamp:
|
| 210 |
z = t.clamp(z, -1, 1)
|
|
|
|
| 204 |
_reset_cache_fresh()
|
| 205 |
|
| 206 |
# Sample with the fresh noise (matching notebook: sample(model, noise, actions[:, aidx:aidx+1], ...))
|
| 207 |
+
z = sample(model_, noise, action_buf, num_steps=n_steps, cfg=cfg, negative_actions=None, cache=cache)
|
| 208 |
|
| 209 |
if clamp:
|
| 210 |
z = t.clamp(z, -1, 1)
|