Spaces:
Sleeping
Sleeping
tommonopoli
commited on
Commit
·
aa485da
1
Parent(s):
84dbd25
removed assert that input and output extensions must match
Browse files- .gitignore +1 -0
- app.py +0 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.history
|
app.py
CHANGED
@@ -35,7 +35,6 @@ model.eval()
|
|
35 |
|
36 |
def main(input, output, patch_size=512, stride=256, scaling_factor=1., rotate=False, batch_size=16, verbose=False, return_vndvi=True, return_vdi=True, window_size=360):
|
37 |
assert osp.splitext(output)[1].lower() in ['.tif', '.tiff', '.png', '.jpg', '.jpeg'], 'Output file format not supported'
|
38 |
-
assert osp.splitext(input)[1].lower() == osp.splitext(output)[1].lower(), f'Input and output file formats must match. Got {osp.splitext(input)[1].lower()} and {osp.splitext(output)[1].lower()} respectively.'
|
39 |
|
40 |
# read image
|
41 |
logger.info(f'Reading image {input}...')
|
|
|
35 |
|
36 |
def main(input, output, patch_size=512, stride=256, scaling_factor=1., rotate=False, batch_size=16, verbose=False, return_vndvi=True, return_vdi=True, window_size=360):
|
37 |
assert osp.splitext(output)[1].lower() in ['.tif', '.tiff', '.png', '.jpg', '.jpeg'], 'Output file format not supported'
|
|
|
38 |
|
39 |
# read image
|
40 |
logger.info(f'Reading image {input}...')
|