llsourcell / ai_startup_prototype Goto Github PK
View Code? Open in Web Editor NEWThis is the code for "Watch Me Build an AI Startup" By Siraj Raval on Youtube
This is the code for "Watch Me Build an AI Startup" By Siraj Raval on Youtube
Please Freeze the project - (pipdeptree)
sing TensorFlow backend.
Traceback (most recent call last):
File "manage.py", line 4, in
from app import app, db, models
File "/home/harish/Desktop/my startup ideas and stuff/AI_Startup_Prototype-master (1)/AI_Startup_Prototype-master/flaskSaaS-master/app/init.py", line 46, in
from app import admin
File "/home/harish/Desktop/my startup ideas and stuff/AI_Startup_Prototype-master (1)/AI_Startup_Prototype-master/flaskSaaS-master/app/admin.py", line 7, in
from flask.ext.admin.contrib.fileadmin import FileAdmin
File "/home/harish/.local/lib/python3.6/site-packages/flask_admin/contrib/fileadmin/init.py", line 15, in
from flask_admin._compat import urljoin, as_unicode, quote
ImportError: cannot import name 'quote'
Can anyone explain me this?
I am getting this error.
graph = tf.get_default_graph()
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'
The main.py is using the imagenet weights instead if the new trained model weights. In the function, upload file is not importing the model with the updated weights.
Look at the model being used -
model= ResNet50(weights='imagenet')
@app.route('/uploaded', methods = ['GET', 'POST']) def upload_file(): if request.method == 'POST': f = request.files['file'] path = os.path.join(app.config['UPLOAD_FOLDER'], f.filename) model= ResNet50(weights='imagenet') img = image.load_img(path, target_size=(224,224)) x = image.img_to_array(img) x = np.expand_dims(x, axis=0) x = preprocess_input(x) preds = model.predict(x) preds_decoded = decode_predictions(preds, top=3)[0] print(decode_predictions(preds, top=3)[0]) f.save(path) return render_template('uploaded.html', title='Success', predictions=preds_decoded, user_image=f.filename)
When trying to load an image up on the website that has been created i get a 404 not found error anyone know what i may have done wrong?
After I 'pay', stripe accepts, but won't redirect me to the upload page.
In the jupyter notebook BERT_MODEL is not defined. Can someone help me defining BERT_MODEL
Hi,
Thank you for your efforts, but I want to point out that your model output is classification i.e. 3 outcomes but the image you showed is more of a segmentation task that requires something like mask-rcnn sort of thing and similarly the data according to that which can be found here:
https://www.kaggle.com/c/rsna-pneumonia-detection-challenge/data
Did anyone else get an application error after deploying?
I have done everything, but I still end up getting this error message. What does it mean that the model must have 107 layers?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.