Skip to content

daoxuantianxia/tensorflow2.1_play_GTA5

Repository files navigation

tensorflow2.1_play_GTA5

using the tensorflow 2.1 to playing GTA5 #环境要求:tensorflow 2.1.0,pillow, opencv, numpy, pywin32 #注释:自制数据集请使用grab_train_data这个文件(收集图片的尺寸为32*32),getkeys是获取键盘操作的代码(自制数据集要用),directkeys是控制键盘的代码(人机操控键盘的代码);可以参考balance_03的方法平衡数据集,因为开车的时候,W(向前)的数据一定是最多的,尽量平衡它与其他数据,不然训练出来的模型大概率是无脑向前冲!! LeNet_train是训练神经网络的代码(已经加了回调函数),LeNet_test是测试代码(用它就可以人机玩GTA5啦);剩下的文件只有神经网络的结构不同,其余的与LeNet一致; My English is not good, this is machine translation: Note: for homemade datasets, please use grab_ train_ Data (the size of the collected pictures is 32 * 32). Getkeys is the code to obtain keyboard operation (for self-made data set), and directkeys is the code for controlling keyboard (the code for man-machine control keyboard). Please refer to balance_ 03 method to balance the data set, because when driving, w (forward) data must be the most, try to balance it with other data, otherwise the trained model is probably brainless forward!! LeNet_ Train is the code of training neural network (already added callback function), lenet_ Test is the test code (you can use it to play gta5); the remaining files only have different structure of neural network, and the rest are consistent with lenet;

About

using the tensorflow 2.1 to playing GTA5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages