Skip to content

Conversation

Dee61298
Copy link
Contributor

Fixed issue :
#234

Minimal reproducible example : in the main()

@Dee61298 Dee61298 requested a review from jsalotti November 17, 2022 09:23
@anhtu293 anhtu293 self-requested a review November 17, 2022 09:23
@@ -341,7 +355,12 @@ def __call__(self, image, target):


if __name__ == "__main__":
coco_dataset = CocoBaseDataset(sample=True)
coco_dataset = CocoBaseDataset(sample=False,img_folder = "test2017")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding convention:

  • A comma "," should be followed by a space
  • There are no space before and after "="

@@ -231,7 +238,14 @@ def getitem(self, idx):
return BaseDataset.__getitem__(self, idx)

image_id = self.items[idx]
if "test" in self.img_folder:
#get the filename from image_id without relying on annotation file
frame = Frame(os.path.join(self.img_folder, f'{str(image_id). zfill(12)}.jpg'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • There shouldnt be a space " " after str(image_id).
  • double quote sign " " is prefered for string in aloception-oss.

@jsalotti jsalotti removed their request for review November 17, 2022 09:44
@anhtu293 anhtu293 merged commit 50a504b into alobugdays Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants