Docker container request

263 views
Skip to first unread message

Alex

unread,
Feb 24, 2021, 11:04:22 AM2/24/21
to Workshop and Challenge on Learned Image Compression (CLIC)
Hi,

This is a request for a modified Docker container to be able to run my decoder. I would like the container to be based on the current PyTorch 1.7 container that is provided, however in addition, also pip install opencv-python

Thanks

Lucas Theis

unread,
Feb 25, 2021, 8:04:43 AM2/25/21
to Workshop and Challenge on Learned Image Compression (CLIC)
I've added the Docker environment and it should be available shortly. It's called:

eu.gcr.io/clic-215616/pytorch:1.7.0-extra


Okamoto

unread,
Mar 5, 2021, 7:27:39 AM3/5/21
to Workshop and Challenge on Learned Image Compression (CLIC)
Hi,

cv2 cannot be imported in Python because there are 2 library files missing for the Docker image you provided above.

> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.8/site-packages/cv2/__init__.py", line 5, in <module>
    from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

The following fixes the issue:

apt-get update
apt-get install -y libgl1-mesa-dev
apt-get install -y libglib2.0-0

Can you include the 3 lines above in the Dockerfile?

Thanks

Lucas Theis

unread,
Mar 9, 2021, 2:03:54 PM3/9/21
to Workshop and Challenge on Learned Image Compression (CLIC)
I added the lines you suggested and the updated Docker environment should be available shortly.
Reply all
Reply to author
Forward
0 new messages