Meshroom
Meshroom copied to clipboard
[question] error when using a json file in the ImportKnownPoses node
Describe the problem Hi.
When I try to use the ImportKnownPoses node with a json file, I get the following error: [fatal] < unspecified file > (1): expected key string
I used the mini6 test dataset from Alicevision. The camera positions were determined using the default pipeline. I took the cameras.sfm file from the SFM node, removed "featuresFolders" and "matchingFolders" and changed "locked" to "1" for all poses. Then I changed the file to a json file and copied the path into the ImportKnownPoses node. (I have already commented on a post regarding the same issue: https://github.com/alicevision/Meshroom/issues/2158#issuecomment-1764609763)
Is there an example where this has worked so far?
Thanks a lot
Desktop:
- OS: win 10
- Meshroom version:
- Binary version 2023.2.0
I also have the same error, hope someone familiar with Meshroom can give some guidance or idea what to try next
A quick solution which worked for me is changing using the .sfm file ending. It loads the positions as well, but skips part of a code which was solely meant for json ... and doesn´t work.
For those with more knowledge: The problem is in main_importKnownPoses.cpp in line 329: while (getline(jsonFile, line))
in which a json File is attempted to be parsed with only the value { in the line variable. Is that whole while loop even needed? sfmDataIO::load(sfmData, sfmDataFilePath, sfmDataIO::ESfMData::ALL)
further up in line 155 already loads all the necessary data.