Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataset.py and polygonize.py: enable for proper TIFF image processing #1

Open
MarkusKoenig73 opened this issue Nov 6, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MarkusKoenig73
Copy link

MarkusKoenig73 commented Nov 6, 2018

if images have been processed as TIFF images instead of JPEG (createDataSpaceNet.py) :


dataset.py:
replace('.tif', 'segcls.png')

polygonize.py:

when iterating through files:
#image_files = [image_file for image_file in image_files if image_file.endswith('.jpg')] #.tif since i produced files in tif format using script createDataSpaceNet.py
image_files = [image_file for image_file in image_files if ( image_file.endswith('.tif') and (not (image_file.endswith('segcls.tif')) and (not (image_file.endswith('segobj.tif'))) ) )]

and

#image_name_no_file_type = image_name.split('.jpg')[0]
image_name_no_file_type = image_name.split('.tif')[0]

@yangsiyu007 yangsiyu007 self-assigned this Nov 19, 2018
@yangsiyu007 yangsiyu007 added the enhancement New feature or request label Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants