Fix bug in conversion of potsdam (#1279)
This commit is contained in:
parent
cb1ae010be
commit
bae9f23d57
@ -126,8 +126,8 @@ def main():
|
|||||||
zipp_list = glob.glob(os.path.join(dataset_path, '*.zip'))
|
zipp_list = glob.glob(os.path.join(dataset_path, '*.zip'))
|
||||||
print('Find the data', zipp_list)
|
print('Find the data', zipp_list)
|
||||||
|
|
||||||
with tempfile.TemporaryDirectory(dir=args.tmp_dir) as tmp_dir:
|
|
||||||
for zipp in zipp_list:
|
for zipp in zipp_list:
|
||||||
|
with tempfile.TemporaryDirectory(dir=args.tmp_dir) as tmp_dir:
|
||||||
zip_file = zipfile.ZipFile(zipp)
|
zip_file = zipfile.ZipFile(zipp)
|
||||||
zip_file.extractall(tmp_dir)
|
zip_file.extractall(tmp_dir)
|
||||||
src_path_list = glob.glob(os.path.join(tmp_dir, '*.tif'))
|
src_path_list = glob.glob(os.path.join(tmp_dir, '*.tif'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user