big bug... not unique imaged :D
This commit is contained in:
parent
efd860a127
commit
9905b6039e
@ -24,6 +24,9 @@ class CustomDataset(Dataset):
|
|||||||
self.dir_path = dir_path
|
self.dir_path = dir_path
|
||||||
self.bbox_df = bbox_df
|
self.bbox_df = bbox_df
|
||||||
|
|
||||||
|
embed()
|
||||||
|
quit()
|
||||||
|
|
||||||
self.all_images = np.array(sorted(self.bbox_df['image']), dtype=str)
|
self.all_images = np.array(sorted(self.bbox_df['image']), dtype=str)
|
||||||
self.image_paths = list(map(lambda x: Path(self.dir_path)/x, self.all_images))
|
self.image_paths = list(map(lambda x: Path(self.dir_path)/x, self.all_images))
|
||||||
# embed()
|
# embed()
|
||||||
|
@ -63,7 +63,6 @@ if __name__ == '__main__':
|
|||||||
test_data = create_train_or_test_dataset(TRAIN_DIR, train=False)
|
test_data = create_train_or_test_dataset(TRAIN_DIR, train=False)
|
||||||
test_loader = create_valid_loader(test_data)
|
test_loader = create_valid_loader(test_data)
|
||||||
|
|
||||||
|
|
||||||
infere_model(test_loader, model)
|
infere_model(test_loader, model)
|
||||||
|
|
||||||
# detection_threshold = 0.8
|
# detection_threshold = 0.8
|
||||||
|
Loading…
Reference in New Issue
Block a user