gurvindersingh / mlapp Goto Github PK
View Code? Open in Web Editor NEWML model serving app based on APIs
License: MIT License
ML model serving app based on APIs
License: MIT License
Following the instructions on the github page on OSX with Python 3.6.5 gives the following error. I've never seen this before, but I did notice some people have similar issues with models saved with joblib (eg https://stackoverflow.com/a/44852728/280795)
[2018-11-23 22:08:45 +1030] [1604] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
__import__(module)
File "/Users/myname/dev/prg/mlapp_test/mlapp/app.py", line 92, in <module>
model.load()
File "/Users/myname/dev/prg/mlapp_test/mlapp/model.py", line 73, in load
learn.load(model, device=CONFIG[model]['device'])
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/fastai/basic_train.py", line 204, in load
self.model.load_state_dict(torch.load(self.path/self.model_dir/f'{name}.pth', map_location=device))
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/torch/serialization.py", line 358, in load
return _load(f, map_location, pickle_module)
File "/Users/myname/dev/prg/mlapp_test/mlapp/venv/lib/python3.6/site-packages/torch/serialization.py", line 519, in _load
magic_number = pickle_module.load(f)
_pickle.UnpicklingError: invalid load key, 'v'```
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.