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

totp /= totw [nan nan nan] #6

Open
filippide opened this issue Mar 23, 2023 · 2 comments
Open

totp /= totw [nan nan nan] #6

filippide opened this issue Mar 23, 2023 · 2 comments

Comments

@filippide
Copy link

Hi, I'm sorry to tell you but the problem still exist. I tryed metashape 1.8
I used mask to remove background.
RuntimeWarning: invalid value encountered in divide
totp /= totw
[nan nan nan]
example.txt

transforms.txt

@MCemGunes
Copy link

Hello, it has been a long time but I faced the same error. So I am writing for the ones who will face it from this point on.

The solution is changing line 139 as below:

from for frame in root[0][2]:
to for frame in root[0][1]:

and be sure that directories are provided clearly:

for example:

python3 agi2nerf.py --xml_in ./livingroom.xml --imgfolder /workspace/camera_data/images/ --imgtype jpg

Probably, the hierarchy order is changed in Metashape XML files. So if someone sees this type of problem in the future. Please check what is inside the referenced array/dictionary.

@Tonysa87
Copy link

Tonysa87 commented May 10, 2024

Hi MCemGunes, I've encounterd the problem linked by filippide, but using you suggestion seems not to solve it, do you have any other suggestion?

error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants