Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,10 +19,7 @@ import argparse
|
|
| 19 |
import os
|
| 20 |
import logging
|
| 21 |
|
| 22 |
-
|
| 23 |
-
import cupy
|
| 24 |
-
except:
|
| 25 |
-
print('import cupy failed!')
|
| 26 |
|
| 27 |
import numpy as np
|
| 28 |
import torch
|
|
@@ -80,6 +77,7 @@ def depth_normal(img,
|
|
| 80 |
seed,
|
| 81 |
domain):
|
| 82 |
|
|
|
|
| 83 |
seed = int(seed)
|
| 84 |
if seed >= 0:
|
| 85 |
torch.manual_seed(seed)
|
|
|
|
| 19 |
import os
|
| 20 |
import logging
|
| 21 |
|
| 22 |
+
print('torch_version', torch.version.cuda)
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
import numpy as np
|
| 25 |
import torch
|
|
|
|
| 77 |
seed,
|
| 78 |
domain):
|
| 79 |
|
| 80 |
+
print('torch_version', torch.version.cuda)
|
| 81 |
seed = int(seed)
|
| 82 |
if seed >= 0:
|
| 83 |
torch.manual_seed(seed)
|