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

When I run visualization command, an error occured. #9

Open
having-salt opened this issue Nov 7, 2024 · 4 comments
Open

When I run visualization command, an error occured. #9

having-salt opened this issue Nov 7, 2024 · 4 comments

Comments

@having-salt
Copy link

having-salt commented Nov 7, 2024

I first ran:
python save.py checkpoint=/home/qzh/DeFlow/checkpoints/deflow_best.ckpt dataset_path=/home/qzh/DeFlow/data/av2/preprocess_v2/sensor/val
and it showed:
We already write the flow_est into the dataset, please run following commend to visualize the flow. Copy and paste it to your terminal: python tools/visualization.py --res_name 'deflow_best' --data_dir /home/qzh/DeFlow/data/av2/preprocess_v2/sensor/val Enjoy! ^v^ ------
so I ran this command, then, an error occured.
File "tools/visualization.py", line 114, in
fire.Fire(vis)
File "/home/qzh/anaconda3/envs/deflow/lib/python3.8/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/qzh/anaconda3/envs/deflow/lib/python3.8/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/home/qzh/anaconda3/envs/deflow/lib/python3.8/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "tools/visualization.py", line 73, in vis
opt.background_color = np.asarray([80/255, 90/255, 110/255])
AttributeError: 'NoneType' object has no attribute 'background_color'

@Kin-Zhang
Copy link
Member

Could you check your open3d version, it must >=0.18.0

@having-salt
Copy link
Author

import open3d
open3d.version
'0.18.0'
Thanks for your reply, I have checked.

@having-salt
Copy link
Author

but the error still exists

@Kin-Zhang
Copy link
Member

Kin-Zhang commented Nov 7, 2024 via email

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

2 participants