Hi all,
I’m trying to implement a nodejs-python image classifier from lesson 2 where i saw this medium post.
https://medium.com/@zachcaceres/deploying-a-deep-learning-image-classification-model-with-fastai-python-and-nodejs-cdc491b56368
I’m trying to install the 2nd part from this github link (GitHub - navjotts/node-python at example_ml_image_classification ),
$ pip install -r requirements.txt
where i encountered the following error:
Anyone has any idea to solve this?
marcmuc
(Marc P. Rostock)
March 6, 2019, 2:44pm
2
this is from before the official release of pytorch and tries to pull a nightly build, even on windows today you can simply install pytorch 1.0 regularly via pip or conda. The code might still not work though, as the requierements does not specify a fastai version and there have been numerous breaking changes in the lib since this was released.
Hi @marcmuc , thanks!
Do you have any links to build a image classifier on nodejs or anywhere I can do a REST API to validate images?
marcmuc
(Marc P. Rostock)
March 6, 2019, 10:53pm
4
search for „productionizing“ , „flask“, „starlette“ or web app, there are many examples here on the Forum, entire threads about it:
Has anyone been able to successfully build a web application? What server did you use? Pythonanywhere’s free plan can only hold up to 512 MB so just with the pip install of the fastai library, it is full. And Heroku won’t allow me to git push any of my python files for some reason. Something about it doesn’t understand the type of application being pushed.
Here’s a general thread for discussion on putting models in production.
In general, our suggestion is to do inference on CPU where possible.
2 Likes
prosti
June 10, 2019, 9:35pm
5
I had similar problem. The solution for your case is most probable to run the following line:
pip install --upgrade torch
This should install the latest and remove the current version you have, and eliminate the error.
From your image as I see you may upgrade pip:
python -m pip install --upgrade pip
`
mayhem_am
(Akanksh A M)
February 21, 2020, 5:32pm
7
A fresh reinstall would help
conda install -c pytorch -c fastai fastai
1 Like