Skip to content

Commit

Permalink
fix: Add apt packages for Pillow (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuverta authored Sep 15, 2023
1 parent 42886fd commit bdd13fc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions deployment/tfhub/object-detection-base64.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@
"outputs": [],
"source": [
"model = registered_model.create_standard_model(\n",
" name = VERSION,\n",
" model_cls = DetectObject,\n",
" model_api = ModelAPI(\n",
" name=VERSION,\n",
" model_cls=DetectObject,\n",
" model_api=ModelAPI(\n",
" [{'file_name': '', 'img': ''}],\n",
" [{\n",
" 'file_name': '',\n",
Expand All @@ -304,11 +304,14 @@
" 'ymin': 0,\n",
" 'xmin': 0,\n",
" 'ymax': 0,\n",
" 'xmax': 0\n",
" 'xmax': 0,\n",
" }\n",
" }]\n",
" ),\n",
" environment = Python(requirements = ['tensorflow', 'tensorflow_hub', 'dill', 'Pillow', 'wget'])\n",
" environment=Python(\n",
" requirements=['tensorflow', 'tensorflow_hub', 'dill', 'Pillow', 'wget'],\n",
" apt_packages=['libjpeg-dev', 'zlib1g-dev'], # for Pillow\n",
" )\n",
")"
]
},
Expand Down
13 changes: 8 additions & 5 deletions deployment/tfhub/object-detection-url.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@
"outputs": [],
"source": [
"model = registered_model.create_standard_model(\n",
" name = VERSION,\n",
" model_cls = DetectObject,\n",
" model_api = ModelAPI(\n",
" name=VERSION,\n",
" model_cls=DetectObject,\n",
" model_api=ModelAPI(\n",
" [{'file_name': '', 'url': ''}],\n",
" [{\n",
" 'file_name': '',\n",
Expand All @@ -331,11 +331,14 @@
" 'ymin': 0,\n",
" 'xmin': 0,\n",
" 'ymax': 0,\n",
" 'xmax': 0\n",
" 'xmax': 0,\n",
" }\n",
" }]\n",
" ),\n",
" environment = Python(requirements = ['tensorflow', 'tensorflow_hub', 'dill', 'Pillow', 'wget'])\n",
" environment=Python(\n",
" requirements=['tensorflow', 'tensorflow_hub', 'dill', 'Pillow', 'wget'],\n",
" apt_packages=['libjpeg-dev', 'zlib1g-dev'], # for Pillow\n",
" )\n",
")"
]
},
Expand Down

0 comments on commit bdd13fc

Please sign in to comment.