Luca96 / carla-driving-rl-agent

Code for the paper "Reinforced Curriculum Learning for Autonomous Driving in CARLA" (ICIP 2021)
MIT License
98 stars 23 forks source link

AttributeError: module 'rl.environments.carla.tools.utils' has no attribute 'swish6' #7

Open Mouni97AS opened 2 years ago

Mouni97AS commented 2 years ago

Hello, I am trying to run the training code main.py via anaconda with python 3.7.4, carla 0.9.9.4 tf=2.3.1 could you please help me fixed the error Screenshot (31)

Luca96 commented 2 years ago

Hi, try to replace this line with:

from rl import networks
import rl.utils as utils

If it does not work, then try to import the swish6 function directly with from rl.utils import swish6, and then substitute it in core/networks.py.

Let me known if the error persists.

Mouni97AS commented 2 years ago

Thanks for the reply, the issue was solve by: from rl import networks,utils from rl.utils import swish6,softplus,EPSILON remove utils from utils.swish6.

after that the pygame was able to run but i had issue during the training, its say NotImplementedError: Cannot convert a structure of tensors to a single tensor. Screenshot (34) please if you could help

Luca96 commented 2 years ago

I have to change a bunch of things about the Networks, since tf 2.3.1 has broken lots of things, sadly.

I will update the repo as soon as I can, an let you know.

Luca96 commented 2 years ago

Hi, it should be all fixen now with the latest commit. Let me know, if not.

Mouni97AS commented 2 years ago

Hii, YESS it work now there is no error in the code. but its running slowly because of my pc low performance, i will try to run it on GPU server.