CAL icon indicating copy to clipboard operation
CAL copied to clipboard

Unable to find gru.pth model

Open ahmedtalbi opened this issue 5 years ago • 11 comments

Hello,

thanks for your nice work.

launching python python_client/driving_benchmark.py -c Town01 -v -n test --corl-2017 looks for CAL/training/models/gru.pth nevertheless this model is not downloaded within the data zip file. (is there another link for pytorch models?)

ahmedtalbi avatar Jun 18 '19 11:06 ahmedtalbi

i have the same error message as ahmedtalbi.

radeonwu avatar Jun 26 '19 07:06 radeonwu

you need to checkout a previous commit, commit 36000a2ed08ec2d1f6ae23f9d7ffd164e72d4aba

But it would be nice to have acces to the pytorch model if it works.

ahmedtalbi avatar Jun 26 '19 11:06 ahmedtalbi

unfortunately, after commit 36000a2, the following command can't run successfully any more, python python_client/driving_benchmark.py as it seems lots of differences in this previous commit.

@ahmedtalbi could you elaborate in a bit more detail the steps that work for you?

radeonwu avatar Jun 26 '19 12:06 radeonwu

the Folder in that commit will change to PythonClient as it is using the old version of Carla 0.8.x the new one should be based on the 0.9.X (I am not sure didn't check) I only checked out a previous commit and did what was written in the README file.

ahmedtalbi avatar Jul 02 '19 09:07 ahmedtalbi

Hi all,

the CARLA version is still 0.8.x.

As @radeonwu already wrote, if you want to run the driving benchmark you need to go back to commit 36000a2 - this commit still uses the Tensorflow model on which the evaluation in the paper is based. The new training code, however, uses PyTorch and a trained PyTorch model will be uploaded soon.

So right now you can either:

  • use the Tensorflow model with commit 36000a2
  • train a PyTorch model and use the current code

xl-sr avatar Jul 02 '19 15:07 xl-sr

thanks for the answer, are you planning to move to version 0.9.x ?

ahmedtalbi avatar Jul 02 '19 15:07 ahmedtalbi

This is not planned, but I'd be happy about contributions :)

xl-sr avatar Jul 03 '19 07:07 xl-sr

Hey @xl-sr ! Could you please provide a trained PyTorch model?

rishikesh1419 avatar Feb 09 '20 17:02 rishikesh1419

Hi @xl-sr, I have trained the model from scratch with vgg but the predictions weren’t correct it gives the default values e.g -1 for speed limits, red light always=false and hazard stop always =False, i have changed feature extractor and used ResNet18 but still can’t get predictions and loss values for training does not changed after second epoch. I don’t know where is the problem if you have any suggestions could tell me. Also could you proved your trained model. Thanks

Marwa215 avatar Mar 14 '20 04:03 Marwa215

An other question, you mentioned in your paper in the table that different tasks predictions require different input params you trained each task and used toch.cat to concatenate these predictions then trained the whole predictions. I got confused I should train each task block separately or It is only one training block and how to specify different params for different task blocks during the training? Thanks

Marwa215 avatar Mar 14 '20 04:03 Marwa215

Hi all,

the CARLA version is still 0.8.x.

As @radeonwu already wrote, if you want to run the driving benchmark you need to go back to commit 36000a2 - this commit still uses the Tensorflow model on which the evaluation in the paper is based. The new training code, however, uses PyTorch and a trained PyTorch model will be uploaded soon.

So right now you can either:

* use the Tensorflow model with commit [36000a2](https://github.com/xl-sr/CAL/commit/36000a2ed08ec2d1f6ae23f9d7ffd164e72d4aba)

* train a PyTorch model and use the current code

Hi, I am also confused. Does that mean if I want to get the CAL/training/models/gru.pth profile, I need to train the model first? Aren't there any exsiting pth files? Looking forward to your answers. @xl-sr

zzzwww avatar Aug 11 '20 09:08 zzzwww