Update detect.py
Browse files
detect.py
CHANGED
@@ -120,7 +120,7 @@ def detect(save_img=False):
|
|
120 |
inputs = cropped_img_tensor.unsqueeze(0)
|
121 |
|
122 |
# Load EDSR model with scale 2
|
123 |
-
edsr_model = EdsrModel.from_pretrained('eugenesiow/
|
124 |
|
125 |
# Perform super-resolution on the cropped image
|
126 |
preds = edsr_model(inputs)
|
|
|
120 |
inputs = cropped_img_tensor.unsqueeze(0)
|
121 |
|
122 |
# Load EDSR model with scale 2
|
123 |
+
edsr_model = EdsrModel.from_pretrained('eugenesiow/drln-bam', scale=2)
|
124 |
|
125 |
# Perform super-resolution on the cropped image
|
126 |
preds = edsr_model(inputs)
|