You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently tried to run the SimGen/metadrive_simgen.py script to test the SimGen environment, but I found myself with a new issue.
Issue
When running the metadrive_simgen.py script, the following Traceback appears on the terminal:
Traceback (most recent call last):
File "/home/.../SimGen/metadrive_simgen.py", line 287, in
output = pipeline(
^^^^^^^^^
File "/home/.../SimGen/simgen/simgen.py", line 227, in call
images = self._process(
^^^^^^^^^^^^^^
File "/home/.../SimGen/simgen/simgen.py", line 139, in _process
H, W, C = resize_image(HWC3(anchor_image), image_resolution_h).shape
^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'anchor_image' where it is not associated with a value
How to reproduce the issue
Install the last version of SimGen as detailed in the README file.
Before running the metadrive_simgen.py script I tried the test/test.py script, and it worked as expected.
I tried to run the script a few times, with the "use_render" flag set to True and False. The log message I mentioned above, appears when running with the script "use_render = False". When rendering is enabled, Metadrive manages to open a rendering window, but Vs Code crashes completely before showing any output.
I thank you in advance and wish you a nice week.
Regards,
A. Hasenclever
The text was updated successfully, but these errors were encountered:
Dear Developers,
User Story
I recently tried to run the SimGen/metadrive_simgen.py script to test the SimGen environment, but I found myself with a new issue.
Issue
When running the metadrive_simgen.py script, the following Traceback appears on the terminal:
Traceback (most recent call last):
File "/home/.../SimGen/metadrive_simgen.py", line 287, in
output = pipeline(
^^^^^^^^^
File "/home/.../SimGen/simgen/simgen.py", line 227, in call
images = self._process(
^^^^^^^^^^^^^^
File "/home/.../SimGen/simgen/simgen.py", line 139, in _process
H, W, C = resize_image(HWC3(anchor_image), image_resolution_h).shape
^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'anchor_image' where it is not associated with a value
How to reproduce the issue
Hardware
CPU: AMD Ryzen 9 7950X
GPU: Nivida GeForce RTX 4090
RAM: 32GB
Additional Information
Before running the metadrive_simgen.py script I tried the test/test.py script, and it worked as expected.
I tried to run the script a few times, with the "use_render" flag set to True and False. The log message I mentioned above, appears when running with the script "use_render = False". When rendering is enabled, Metadrive manages to open a rendering window, but Vs Code crashes completely before showing any output.
I thank you in advance and wish you a nice week.
Regards,
A. Hasenclever
The text was updated successfully, but these errors were encountered: