microsoft / nestle-acne-assessment

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

Closed Th3R3dL4rv4 closed 2 years ago

Th3R3dL4rv4 commented 2 years ago

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:

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:

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