Created
December 28, 2022 10:29
-
-
Save AlessandroMondin/71319d0af0d6b35249b21cc9c6498f54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img_name = self.annotations.iloc[idx, 0] | |
tg_height = self.annotations.iloc[idx, 1] if self.rect_training else 640 | |
tg_width = self.annotations.iloc[idx, 2] if self.rect_training else 640 | |
# img_name[:-4] to remove the .jpg or .png which are coco img formats | |
label_path = os.path.join(self.root_directory, "labels", self.annot_folder, img_name[:-4] + ".txt") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment