GRIP
GRIP copied to clipboard
xin_feeder_baidu.py file
Hi Xin, Thank you very much for your paper and code. It is very helpful and inspirational. When I learn your code of "xin_feeder_baidu.py" file, there are questions about the line 64-79: Why do you use the angle_mat to multiply the xy and xy_mean? And why should make sure the angle is greater or equal to pi and it is a random value? Why construct the angle_mat and why adopt that form of angle_mat in the code? Thank you again and we look forward to hearing from you.
Hi @lzx-buaa , thank you so much for your interest in my work. 1. The code you mentioned (xin_feeder_baidu.py line64-79) is data augmentation only for training (if statement line64). The purpose is to rotate all objects in the current scene at the same angle. 2. np.random.random() generates [0,1] values, as I mentioned above, we want to randomly rotate the entire scene, thus, we want to generate an angle with [0, 2*pi] range. Again, this part of my code is only for data augmentation while training. Hope it answers your questions.
Thank you for the detailed explanation. I have handled this issue.