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

渲染图像render=True时,代码报错,图像框一下子闪退 Windows10 #1131

Open
SusanJJJ opened this issue Nov 27, 2023 · 1 comment

Comments

@SusanJJJ
Copy link

报错内容
Traceback (most recent call last):
File "D:\code\homework\ddpg_quadrotor\train.py", line 184, in
main()
File "D:\code\homework\ddpg_quadrotor\train.py", line 162, in main
avg_reward = run_evaluate_episodes(
File "D:\code\homework\ddpg_quadrotor\train.py", line 123, in run_evaluate_episodes
env.render()
File "D:\code\homework\ddpg_quadrotor\train.py", line 60, in render
self.env.render()
File "D:\anacondainstall\envs\rlnew\lib\site-packages\rlschool\quadrotor\env.py", line 166, in render
self.viewer = RenderWindow(task=self.task,
File "D:\anacondainstall\envs\rlnew\lib\site-packages\rlschool\quadrotor\render.py", line 489, in init
self.internal_map = Map(
File "D:\anacondainstall\envs\rlnew\lib\site-packages\rlschool\quadrotor\render.py", line 117, in init
self._initialize(init_drone_z)
File "D:\anacondainstall\envs\rlnew\lib\site-packages\rlschool\quadrotor\render.py", line 130, in _initialize
self._add_drone()
File "D:\anacondainstall\envs\rlnew\lib\site-packages\rlschool\quadrotor\render.py", line 152, in _add_drone
if geometry_hash(geom) == self.drone_vertex_list_hash:
File "D:\anacondainstall\envs\rlnew\lib\site-packages\rlschool\quadrotor\utils.py", line 113, in geometry_hash
md5 += str(geometry.visual.crc())
UnboundLocalError: local variable 'md5' referenced before assignment

@SusanJJJ SusanJJJ changed the title 渲染图像rendor=True时,代码报错,图像框一下子闪退 Windows10 渲染图像render=True时,代码报错,图像框一下子闪退 Windows10 Nov 27, 2023
@FNeng
Copy link

FNeng commented Jul 10, 2024

提前定义发现还是报错crc()缺失,搜了下发现解决办法是把trimesh包降低到trimesh<=3.15.1就行,我降到3.15.1就解决了

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