pderoovere / dimo-labeling

Tool for labeling 6D object poses in multi-view RBJ images
Creative Commons Zero v1.0 Universal
11 stars 2 forks source link

Scenes and images don't get loaded into UI #5

Closed monajalal closed 7 months ago

monajalal commented 7 months ago

I have 4 test images in a test_data folder and created a models folder inside it with the models_info.json

image

and

image

I have

(base) mona@ada:~/dimo-labeling/test_data$ tree .
.
├── 000000
│   └── rgb
│       ├── 000000.png
│       ├── 000001.png
│       ├── 000002.png
│       └── 000003.png
└── models
    ├── models_info.json
    └── obj_000001.ply

3 directories, 6 files

image

as you see no images get loaded or no Scenes.

Screenshot from 2024-03-25 14-34-05

I tried to follow Sim-to-Real Dataset of Industrial Metal Objects paper structure for data.

(dimo-labeling) mona@ada:~/dimo-labeling/frontend$ ng version
Workspace extension with invalid name (defaultProject) found.

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 17.3.2
Node: 20.9.0
Package Manager: npm 10.1.0
OS: linux x64

Angular: 17.3.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.2
@angular-devkit/build-angular   17.3.2
@angular-devkit/core            17.3.2
@angular-devkit/schematics      17.3.2
@angular/cli                    17.3.2
@schematics/angular             17.3.2
rxjs                            7.8.1
typescript                      5.4.3
zone.js                         0.14.4
pderoovere commented 7 months ago

Hi @monajalal,

Thanks for trying out the labeling tool!

The stacktrace states FileNotFoundError: [Errno 2] No such file or directory '../test_data/models/models_info.json'. However, looking at the output of your tree command, the file should to exist. But looking at the folder structure, you are missing a "camera" folder. Scenes (000000) should be inside of this folder.

Also, pass --models_dir and --images_dir arguments when starting the backend, e.g. python api.py --path ../test_data --models_dir models --images_dir real_camera.

Does this solve the issue?