Spaces:
Runtime error
Runtime error
Update diffusers_helper/memory.py
Browse files
diffusers_helper/memory.py
CHANGED
@@ -5,7 +5,9 @@ import torch
|
|
5 |
|
6 |
|
7 |
cpu = torch.device('cpu')
|
8 |
-
gpu = torch.device(f'cuda:{torch.cuda.current_device()}')
|
|
|
|
|
9 |
gpu_complete_modules = []
|
10 |
|
11 |
|
|
|
5 |
|
6 |
|
7 |
cpu = torch.device('cpu')
|
8 |
+
# gpu = torch.device(f'cuda:{torch.cuda.current_device()}')
|
9 |
+
gpu = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
10 |
+
|
11 |
gpu_complete_modules = []
|
12 |
|
13 |
|