This is the source code that we developed for the collaborative project between Microsoft and Nestle Skin Health, where we developed deep learning models to assess the acne severity level based on selfie images.
70
stars
40
forks
source link
Built the docker image successfully, but it didn't run on Docker Desktop/Engine [Win 11 and Ubuntu 20.04] #10
I know that this repository is no longer maintained. I was trying to run the program via Docker Desktop on Windows 11 and Ubuntu 20.04 LTS, experiencing multiple errors, but I resolved all the errors by:
changing FROM microsoft/cntk:2.5.1-cpu-python3.5 to FROM mcr.microsoft.com/cntk/release:2.5.1-cpu-python3.5
upgrading pip to pip==19.3.1 'cause that's the only version that made the docker image building work.
creating models folder to the same directory of the Step5_Deployment_Pipeline.ipynb
Those three workarounds above made the docker image building work. However, when I ran the docker image locally via Docker Desktop on Windows, it threw an error.
Troubleshooting:
I also tried to build the docker image on Linux and experienced the same error.
I also tried to push the docker image on Docker Hub and pulled it on the Linux server, but it had the same error.
Here's the error:
Traceback (most recent call last):
File "/workspace/main.py", line 6, in <module>
from model import extract_patches, score_patch, del_cache
File "/workspace/model.py", line 2, in <module>
import getPatches
File "/workspace/getPatches.py", line 3, in <module>
from skimage import io
File "/usr/local/lib/python3.5/dist-packages/skimage/__init__.py", line 135, in <module>
from .data import data_dir
File "/usr/local/lib/python3.5/dist-packages/skimage/data/__init__.py", line 13, in <module>
from ..io import imread, use_plugin
File "/usr/local/lib/python3.5/dist-packages/skimage/io/__init__.py", line 15, in <module>
reset_plugins()
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 91, in reset_plugins
_load_preferred_plugins()
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 71, in _load_preferred_plugins
_set_plugin(p_type, preferred_plugins['all'])
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 83, in _set_plugin
use_plugin(plugin, kind=plugin_type)
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 254, in use_plugin
_load(name)
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 298, in _load
fromlist=[modname])
File "/usr/local/lib/python3.5/dist-packages/skimage/io/_plugins/imageio_plugin.py", line 3, in <module>
from imageio import imread, imsave
File "/usr/local/lib/python3.5/dist-packages/imageio/__init__.py", line 22, in <module>
from .core.imopen import imopen
File "/usr/local/lib/python3.5/dist-packages/imageio/core/__init__.py", line 15, in <module>
from .request import Request, read_n_bytes, RETURN_BYTES
File "/usr/local/lib/python3.5/dist-packages/imageio/core/request.py", line 136
raise ValueError(f"{value} is no valid Mode.")
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/workspace/main.py", line 6, in <module>
from model import extract_patches, score_patch, del_cache
File "/workspace/model.py", line 2, in <module>
import getPatches
File "/workspace/getPatches.py", line 3, in <module>
from skimage import io
File "/usr/local/lib/python3.5/dist-packages/skimage/__init__.py", line 135, in <module>
from .data import data_dir
File "/usr/local/lib/python3.5/dist-packages/skimage/data/__init__.py", line 13, in <module>
from ..io import imread, use_plugin
File "/usr/local/lib/python3.5/dist-packages/skimage/io/__init__.py", line 15, in <module>
reset_plugins()
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 91, in reset_plugins
_load_preferred_plugins()
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 71, in _load_preferred_plugins
_set_plugin(p_type, preferred_plugins['all'])
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 83, in _set_plugin
use_plugin(plugin, kind=plugin_type)
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 254, in use_plugin
_load(name)
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 298, in _load
fromlist=[modname])
File "/usr/local/lib/python3.5/dist-packages/skimage/io/_plugins/imageio_plugin.py", line 3, in <module>
from imageio import imread, imsave
File "/usr/local/lib/python3.5/dist-packages/imageio/__init__.py", line 22, in <module>
from .core.imopen import imopen
File "/usr/local/lib/python3.5/dist-packages/imageio/core/__init__.py", line 15, in <module>
from .request import Request, read_n_bytes, RETURN_BYTES
File "/usr/local/lib/python3.5/dist-packages/imageio/core/request.py", line 136
raise ValueError(f"{value} is no valid Mode.")
^
SyntaxError: invalid syntax
Hello,
I know that this repository is no longer maintained. I was trying to run the program via Docker Desktop on Windows 11 and Ubuntu 20.04 LTS, experiencing multiple errors, but I resolved all the errors by:
FROM microsoft/cntk:2.5.1-cpu-python3.5
toFROM mcr.microsoft.com/cntk/release:2.5.1-cpu-python3.5
pip
topip==19.3.1
'cause that's the only version that made the docker image building work.models
folder to the same directory of theStep5_Deployment_Pipeline.ipynb
Those three workarounds above made the docker image building work. However, when I ran the docker image locally via Docker Desktop on Windows, it threw an error.
Troubleshooting:
Here's the error: