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

Changing the ImitationLearning Class for 0.9.x #98

Open
ameesh-shah opened this issue Jan 12, 2023 · 0 comments
Open

Changing the ImitationLearning Class for 0.9.x #98

ameesh-shah opened this issue Jan 12, 2023 · 0 comments

Comments

@ameesh-shah
Copy link

Hi,

I'm using Carla 0.9.12, and have trained a CIL model locally that I'd like to use for experiments.
The methods by which sensor data is collected (specifically RGB images) has changed since this codebase was first published, so I was wondering about the following lines specifically, which transform the input RGB image:

rgb_image = rgb_image[self._image_cut[0]:self._image_cut[1], :]

image_input = scipy.misc.imresize(rgb_image, [self._image_size[0],
                                              self._image_size[1]])

image_input = image_input.astype(np.float32)
image_input = np.multiply(image_input, 1.0 / 255.0)

steer, acc, brake = self._control_function(image_input, speed, direction, self._sess)

(This is lines 98-104 in agents/imitation/imitation_learning.py. The permalink is here.)

Are these same transformations necessary in 0.9.x? Where should we mount the RGB camera sensor with respect to the vehicle to make sure that it is the same as the data that this model was trained on? Any advice on porting this to 0.9.12 would be greatly appreciated.

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

1 participant