Skip to content

How to change image file name format from dataset recorded #4476

Discussion options

You must be logged in to vote

I haven't found the answer to this question. But I've found the answer to my problem.
Turned out the problem is when I try to cook the dataset, there's a mismatch data label.

The cooking.py read "ImageName" and "Speed (kmph)"
while the label in airsim_rec.txt is "ImageFile" and "Speed"

You can just change the code in cooking.py

previous_state = list(current_df.iloc[i-1][['Steering', 'Throttle', 'Brake', 'Speed (kmph)']])
            current_label = list((current_df.iloc[i][['Steering']] + current_df.iloc[i-1][['Steering']] + current_df.iloc[i+1][['Steering']]) / 3.0)
            
            image_filepath = os.path.join(os.path.join(folder, 'images'), current_df.iloc[i]['ImageName']).rep…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kutilanak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant