trust-ai / SafeBench

A Benchmark for Evaluating Autonomous Vehicles in Safety-critical Scenarios
https://safebench.github.io
MIT License
96 stars 21 forks source link

AttributeError: module 'tensorflow' has no attribute 'contrib' #9

Open Annaisavailable opened 11 months ago

Annaisavailable commented 11 months ago

Hello! I ran into an issue when trying to execute the command 'SDL_VIDEODRIVER="dummy" python scripts/run.py --agent_cfg basic.yaml --scenario_cfg standard.yaml --mode eval' and received the following error message in the terminal: 'AttributeError: module 'tensorflow' has no attribute 'contrib''. Upon searching for a solution, I discovered that tf2 has removed tf.contrib. The suggested fix is to downgrade to tf1; however, it appears that tf1 is not compatible with Python 3.8, which is the version used in my conda environment. I am uncertain how to proceed and would appreciate guidance on solving this problem.

Please let me know if you have any suggestions or require further information. I would like to submit this as an issue on Github. Thank you for your help in advance!