Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path recorded for images #41

Closed
mveres01 opened this issue Nov 29, 2018 · 1 comment
Closed

Wrong path recorded for images #41

mveres01 opened this issue Nov 29, 2018 · 1 comment
Labels
priority: low status: available Issue is open for anyone type: bug Unexpected behavior

Comments

@mveres01
Copy link

mveres01 commented Nov 29, 2018

In the lastest revision, the path property uses an old directory (/data) that doesn't exist anymore. E.g.:

{
  "id":1898,
  "path": "/data/datasets/obj1_day6_nov22/rgb105.jpg",
  "dataset_id": 19,
  "width": 1920,
  "height": 1080,
  "file_name": "rgb105.jpg",
  "annotated": true,
  "metadata": {}
}
@jsbroks jsbroks added priority: low type: bug Unexpected behavior status: available Issue is open for anyone labels Dec 1, 2018
@jsbroks
Copy link
Owner

jsbroks commented Dec 17, 2018

The docker file now mounts the /datasets/ directory to /datasets/ inside the docker container. This means all previous datasets before this fix will break since the image path no longer points to the proper location.

To fix this, move all your old datasets into a folder called '/data/datasets' and add the following line inside the docker-compose.yml and docker-compose.prod.yml under services.flask.volumes:

services:
  flask:
    volumes:
    - './data/datasets:/data/datasets'

This will mount the older datasets back to the proper path name as they are stored in the database.

@jsbroks jsbroks closed this as completed Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low status: available Issue is open for anyone type: bug Unexpected behavior
Projects
None yet
Development

No branches or pull requests

2 participants