-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
enhancementNew feature or requestNew feature or request
Description
💡 Is your feature request related to a problem?
I am using your amazing lightly-train package inside your proposed docker container (0.11.0) since the proposed docker usage kind of restrics flexibility (for me):
- starting a container and
- using it via CLI
Problem: The python package from conda is used at the moment instead of the copied source. This results in an error because of a missing config file:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/conda/lib/python3.11/site-packages/lightly_train/_models/dinov2_vit/dinov2_vit_src/configs/ssl_default_config.yaml'
🧰 Describe the solution you'd like
Adding the PYTHONPATH in your Dockerfile should fix it. It works for me when I build an image like that:
FROM lightly/train:latest
ENV PYTHONPATH=$PYTHONPATH:/home/lightly_train/src
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request