Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- demoire_noAug.pth +3 -0
- model.py +2 -2
demoire_noAug.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:398e8036ee88a177f0d3f7006b47040e9838375f55a75ddc8efdc68f86318710
|
| 3 |
+
size 89262019
|
model.py
CHANGED
|
@@ -142,7 +142,7 @@ def init():
|
|
| 142 |
dehaze_model = FPro(**dehaze_cfg)
|
| 143 |
|
| 144 |
# 加载权重
|
| 145 |
-
dehaze_ckpt = torch.load("
|
| 146 |
dehaze_model.load_state_dict(dehaze_ckpt['params'])
|
| 147 |
dehaze_model.to(device)
|
| 148 |
dehaze_model.eval()
|
|
@@ -180,7 +180,7 @@ def init():
|
|
| 180 |
}
|
| 181 |
|
| 182 |
demoiring_model = FPro(**demoiring_cfg)
|
| 183 |
-
demoiring_ckpt = torch.load("
|
| 184 |
demoiring_model.load_state_dict(demoiring_ckpt['params'])
|
| 185 |
demoiring_model.to(device)
|
| 186 |
demoiring_model.eval()
|
|
|
|
| 142 |
dehaze_model = FPro(**dehaze_cfg)
|
| 143 |
|
| 144 |
# 加载权重
|
| 145 |
+
dehaze_ckpt = torch.load("synDehaze.pth", map_location='cpu')
|
| 146 |
dehaze_model.load_state_dict(dehaze_ckpt['params'])
|
| 147 |
dehaze_model.to(device)
|
| 148 |
dehaze_model.eval()
|
|
|
|
| 180 |
}
|
| 181 |
|
| 182 |
demoiring_model = FPro(**demoiring_cfg)
|
| 183 |
+
demoiring_ckpt = torch.load("demoire_noAug.pth", map_location='cpu')
|
| 184 |
demoiring_model.load_state_dict(demoiring_ckpt['params'])
|
| 185 |
demoiring_model.to(device)
|
| 186 |
demoiring_model.eval()
|