Comments (2)
Interesting. I'm not sure how to recreate what you're seeing, but I will note this project is a bit dated (using keras
instead of tensorflow.keras
). I wasn't able to rerun the code without other errors popping up, so I ended up upgrading to using tensorflow.keras
and rerunning things locally. Here are my reworked imports:
...
from skimage.transform import rescale, resize, rotate
from skimage.color import rgb2gray
from sklearn.metrics import confusion_matrix, auc, accuracy_score
from sklearn.model_selection import train_test_split
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.optimizers import Adam, RMSprop, SGD
from tensorflow.keras import callbacks
from tensorflow.keras.models import load_model
from tensorflow.keras import models
from keras.utils import np_utils
...
Also, I wouldn't recommend loading in the pickled model, as it is the outdated keras
model object. You'd have to train the model (I'd suggest using epochs = 1 just to test things are working)
With these changes I was able to get the code back up and running (see image below).
If you're still seeing the issue, please provide some detail on how I might recreate the error. Otherwise, if this fixes things, I'll be sure to update the repo (it could use an update, anyway 😅).
from bee-image-classifier.
I've updated the repo, so closing this issue for now.
from bee-image-classifier.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bee-image-classifier.