Update handler.py
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -388,7 +388,8 @@ class EndpointHandler:
|
|
388 |
# Set random seeds
|
389 |
random.seed(config.seed)
|
390 |
np.random.seed(config.seed)
|
391 |
-
generator = torch.
|
|
|
392 |
|
393 |
# Prepare generation parameters for the video model (we omit params that are destined to Varnish, or things like the seed which is set externally)
|
394 |
generation_kwargs = {
|
|
|
388 |
# Set random seeds
|
389 |
random.seed(config.seed)
|
390 |
np.random.seed(config.seed)
|
391 |
+
generator = torch.Generator(device='cuda')
|
392 |
+
torch.manual_seed(config.seed)
|
393 |
|
394 |
# Prepare generation parameters for the video model (we omit params that are destined to Varnish, or things like the seed which is set externally)
|
395 |
generation_kwargs = {
|