microsoft / AutonomousDrivingCookbook

Scenarios, tutorials and demos for Autonomous Driving
MIT License
2.33k stars 569 forks source link

Mr. Spryn! How can I change the Generator.py and Cooking.py to store the images in the batches in the same order as they are in the folders and then entered into the model for train? #121

Open M-M98 opened 4 years ago

M-M98 commented 4 years ago

Problem description

I am trying to use images in batches of frames and use Conv3D in my model; so I need to enter the images in the same order in the folders. I could fix other necessary changes and it is the only remaining problem. I also consider changing the order of folders so that the model also learns the swerve Images. Of course, I know it would not be a good way of data preprocessing but please give me your ideas on this matter. Thanks

Problem details

I tried some changes but none of them works; in one of them I made generateDataMapAirSim in Cooking.py not to shuffle the mappings :

` mappings = [(key, all_mappings[key]) for key in all_mappings]

random.shuffle(mappings)

return mappings`

Experiment/Environment details