We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from autokeras.image_classifier import ImageClassifier
This gives the following error:
ImportError Traceback (most recent call last) in () 1 from keras.datasets import mnist ----> 2 from autokeras.image_classifier import ImageClassifier
/usr/local/lib/python3.6/dist-packages/autokeras/image_classifier.py in () 18 from autokeras.search import BayesianSearcher, train 19 from autokeras.utils import ensure_dir, has_file, pickle_from_file, pickle_to_file ---> 20 from autokeras.classifier import Classifier 21 22
ImportError: cannot import name 'Classifier'
Steps to reproduce the behavior: Use this https://colab.research.google.com/drive/1it4U3H8t6fMhLBt_NFmB6vRRN2bVpxFv
Separating classifier.py and image_classifier.py has created this problem.
Include the details about the versions of:
The text was updated successfully, but these errors were encountered:
Thank you for the bug report. I just fixed it by changing the examples. You can reopen the issue if it still fails.
Thanks.
Sorry, something went wrong.
@jhfjhfj1 Running on Google Colab:
/usr/local/lib/python3.6/dist-packages/autokeras/__init__.py in <module>() ----> 1 from autokeras.image.image_supervised import ImageClassifier, ImageRegressor, PortableImageSupervised 2 from autokeras.text.text_supervised import TextClassifier 3 from autokeras.net_module import CnnModule, MlpModule ImportError: cannot import name 'ImageClassifier'
Code:
# !pip install autokeras from autokeras.image.image_supervised import ImageClassifier from autokeras.image.image_supervised import load_image_dataset x_train, y_train = load_image_dataset(csv_file_path="train/label.csv", images_path="train") print(x_train.shape) print(y_train.shape) x_test, y_test = load_image_dataset(csv_file_path="val/label.csv", images_path="val") print(x_test.shape) print(y_test.shape)
haifeng-jin
No branches or pull requests
Bug Description
from autokeras.image_classifier import ImageClassifier
This gives the following error:
ImportError Traceback (most recent call last)
in ()
1 from keras.datasets import mnist
----> 2 from autokeras.image_classifier import ImageClassifier
/usr/local/lib/python3.6/dist-packages/autokeras/image_classifier.py in ()
18 from autokeras.search import BayesianSearcher, train
19 from autokeras.utils import ensure_dir, has_file, pickle_from_file, pickle_to_file
---> 20 from autokeras.classifier import Classifier
21
22
ImportError: cannot import name 'Classifier'
Reproducing Steps
Steps to reproduce the behavior:
Use this https://colab.research.google.com/drive/1it4U3H8t6fMhLBt_NFmB6vRRN2bVpxFv
Expected Behavior
Separating classifier.py and image_classifier.py has created this problem.
Setup Details
Include the details about the versions of:
The text was updated successfully, but these errors were encountered: