Matrix-Game icon indicating copy to clipboard operation
Matrix-Game copied to clipboard

Mapping between mouse conditioning values and degrees in Matrix-Game 2

Open daohanlu opened this issue 1 year ago • 1 comments

Hi! I was wondering what is the mapping between yaw/pitch degrees and the mouse x/y action values that are used to condition the model? Matrix-Game-2/utils/visualize.py includes a linear mapping from the action value mouse_x to on-screen mouse locations, but it seems like it's only for visualization purposes.

global_scale_factor = 0.1
mouse_scale_x = 15 * global_scale_factor
mouse_scale_y = 15 * 4 * global_scale_factor

Could you provide information regarding the mapping between degrees and the mouse conditioning values?

daohanlu avatar Sep 25 '25 16:09 daohanlu

Thanks for your attention to our work! The camera values can be transformed into real degrees with a simple linear transformation indeed. You could directly multiply 15 to the camera values to get the real degrees. The code you mentioned in the issues is just for visualization.

XianglongHe avatar Sep 26 '25 06:09 XianglongHe