Spaces:
Sleeping
Sleeping
Update inference_img.py
Browse files- inference_img.py +1 -4
inference_img.py
CHANGED
@@ -5,9 +5,7 @@ import argparse
|
|
5 |
from torch.nn import functional as F
|
6 |
import warnings
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
warnings.filterwarnings("ignore")
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
torch.set_grad_enabled(False)
|
@@ -118,4 +116,3 @@ import warnings
|
|
118 |
print(f"Saving to {save_path} → success: {success}")
|
119 |
|
120 |
print("Checkpoint reached!")
|
121 |
-
|
|
|
5 |
from torch.nn import functional as F
|
6 |
import warnings
|
7 |
|
8 |
+
warnings.filterwarnings("ignore")
|
|
|
|
|
9 |
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
torch.set_grad_enabled(False)
|
|
|
116 |
print(f"Saving to {save_path} → success: {success}")
|
117 |
|
118 |
print("Checkpoint reached!")
|
|