Regarding use labelimg generated custom dataset in pytorch

With the labelimg we can select multiple objects in one image. That generates an image and label format in .txt format. The .txt file contains information about the specific box of the object. How can I use this type of dataset in Python? Please help me. Thank you.