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
The airsim server sometimes returns an empty image message, which is why reshaping causes this value error. We are still looking into why the image return is sometimes empty, but as a workaround, you can add a logical catch for when these empty images are returned:
if img1d.size == responses[0].height * responses[0].width:
# reshape image
else:
#image is empty
Airsim version: 1.2
Car environment: Unity
Python file: DQNcar.py
Whenever I try to run this code, I get this error:
I tried to manually print output of responses[0].image_data_float but I only get [0.]
Any solutions?
TIA.
The text was updated successfully, but these errors were encountered: