I am currently working on a project for the acumos AI challenge, and I am creating a simple Tensorflow program just to try uploading. The problem I am having is that acumos supports using python dependencies using Requirements, but I have yet to find a way to add .tf files (for the pretrained tensorflow model), or .txt files (for data).
The site allows me to upload my model without adding my pretrained tensorflow model as a dependency, but when I run it on a docker on a different computer I get this error...
[2018-08-03 21:48:58 +0000] [11] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "runner.py", line 102, in load
return build_app(self.parsed_args)
File "runner.py", line 115, in build_app
model = load_model(pargs.modeldir) # refers to ./model dir in pwd. generated by helper script also in this dir
File "/usr/local/lib/python3.6/site-packages/acumos/wrapped.py", line 42, in load_model
model = _load_model(f)
File "/usr/local/lib/python3.6/site-packages/dill/dill.py", line 288, in load
obj = pik.load()
File "/usr/local/lib/python3.6/site-packages/dill/dill.py", line 546, in _load_type
return _reverse_typemap[name]
KeyError: 'ClassType'
[2018-08-03 21:48:58 +0000] [11] [INFO] Worker exiting (pid: 11)
[2018-08-03 21:48:58 +0000] [10] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "runner.py", line 102, in load
return build_app(self.parsed_args)
File "runner.py", line 115, in build_app
model = load_model(pargs.modeldir) # refers to ./model dir in pwd. generated by helper script also in this dir
File "/usr/local/lib/python3.6/site-packages/acumos/wrapped.py", line 42, in load_model
model = _load_model(f)
File "/usr/local/lib/python3.6/site-packages/dill/dill.py", line 288, in load
obj = pik.load()
File "/usr/local/lib/python3.6/site-packages/dill/dill.py", line 546, in _load_type
return _reverse_typemap[name]
KeyError: 'ClassType'
[2018-08-03 21:48:58 +0000] [10] [INFO] Worker exiting (pid: 10)
[2018-08-03 21:48:58 +0000] [1] [INFO] Shutting down: Master
[2018-08-03 21:48:58 +0000] [1] [INFO] Reason: Worker failed to boot.
It is just my guess that this error is cause by introception missing the .tf files, but I could be totally wrong on that. I should also mention that my docker container works fine for models that I built that do not require external files (e.i. a simple a+b = c type model).
Any help on this would be great! Thanks!