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

work with 8-bit image in retile.py and tile_utils.py #14

Open
tnwillia opened this issue Nov 15, 2018 · 0 comments
Open

work with 8-bit image in retile.py and tile_utils.py #14

tnwillia opened this issue Nov 15, 2018 · 0 comments

Comments

@tnwillia
Copy link

I've successfully labeled both panchromatic satellite imagery and UAS thermal imagery. However, when I try to use these image to create a library, the panchromatic images (8-bit depth) fail. The UAS imagery (24-bit depth) completes the process. An example of the error is shown below. Is there a way to adapt this to grayscale imagery? Thanks.

(dl_tools) C:\WORK\machineLearning\dl_tools>python create_library\retile.py -t 96 -a 0.9 -b 0.1
Searching for labels in all 9 files
Working on C:/WORK/machineLearning/dl_tools/allLabeledImages/IN_pan_2010apr141_mres.mat
Generating tiles from dense class map ....
Traceback (most recent call last):
File "create_library\retile.py", line 143, in
Z,ind = sliding_window(imread(fim), (tile,tile,3), (int(tile/2), int(tile/2),3))
File "C:\WORK\machineLearning\dl_tools\create_library\tile_utils.py", line 56, in sliding_window
'a.shape, ws and ss must all have the same length. They were %s' % str(ls))
ValueError: a.shape, ws and ss must all have the same length. They were [2, 3, 3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant