Commit 0c2d7ba5 authored by Meet Narendra's avatar Meet Narendra 💬

added annot

parent 6de6f3a4
...@@ -36,6 +36,17 @@ class DataLoader(): ...@@ -36,6 +36,17 @@ class DataLoader():
images.append(image) images.append(image)
annotations.append(anno) annotations.append(anno)
return images,annotations return images,annotations
def get_all_annotations(self):
'''
Function to get all annotations
'''
annotations = []
for pidx in self.pidxs:
print(pidx)
image,anno = self.pin_dataset.get_annotation(pin_id=pidx)
annotations.append(anno)
return annotations
''' '''
if __name__ == "__main__": if __name__ == "__main__":
data_loader = DataLoader() data_loader = DataLoader()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment