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

CustomClassifier doesn't handle channel-free models #5

Open
AlliedToasters opened this issue Aug 15, 2020 · 0 comments
Open

CustomClassifier doesn't handle channel-free models #5

AlliedToasters opened this issue Aug 15, 2020 · 0 comments

Comments

@AlliedToasters
Copy link
Owner

An issue was brought to my attention that appears to be related to custom classifier models that do not expect color channels in input images. A test case has been added in the branch custom_classifier that reproduces this issue with the following traceback:

E

.

......
======================================================================
ERROR: test_custom_classifier (__main__.TestImageFlow)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mklear/PyCDA/test.py", line 125, in test_custom_classifier
    cls = CustomClassifier('./pycda/models/no_channels_model.h5', crater_pixels=6)
  File "/Users/mklear/PyCDA/pycda/classifiers.py", line 66, in __init__
    self.input_channels = input_layer.input_shape[3]
IndexError: tuple index out of range

----------------------------------------------------------------------
Ran 11 tests in 3.570s

FAILED (errors=1)

I am currently working to solve this issue.

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