Spaces:
Runtime error
Runtime error
commit from ssq
Browse files
app.py
CHANGED
|
@@ -6,12 +6,8 @@ from skimage import img_as_ubyte
|
|
| 6 |
|
| 7 |
from Allweather.util import load_img, save_img
|
| 8 |
from basicsr.models.archs.histoformer_arch import Histoformer
|
| 9 |
-
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 10 |
-
# True
|
| 11 |
-
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 12 |
-
# Tesla T4
|
| 13 |
|
| 14 |
-
model_restoration = Histoformer.from_pretrained("sunsean/Histoformer-real")
|
| 15 |
|
| 16 |
model_restoration.eval()
|
| 17 |
|
|
|
|
| 6 |
|
| 7 |
from Allweather.util import load_img, save_img
|
| 8 |
from basicsr.models.archs.histoformer_arch import Histoformer
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
model_restoration = Histoformer.from_pretrained("sunsean/Histoformer-real")
|
| 11 |
|
| 12 |
model_restoration.eval()
|
| 13 |
|