Yolov9 informations

Hello I want to use yolov9 to do instance segmentation on my own dataset. But I see nowhere how to write the train2017.txt for example, in what format is it, I know the train2017.json but not the train2017.txt.
Furtherly I need help to connect yolov9 to my cuda device please.
Thank you
Best regards