tutorial code question

tutorial code question  

  By: N0zE on Nov. 1, 2024, 2:21 a.m.

in training ipnb What does “detection_dataset2” mean ?
I thought it is custom dataset but I don’t find any DatasetCatalog.register or register_coco_instances codes…




cfg = get_cfg()
using faster rcnn architecture
cfg.merge_from_file( model_zoo.get_config_file("COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml") )


cfg.DATASETS.TRAIN = ("detection_dataset2",)
cfg.DATASETS.TEST = ()
cfg.DATALOADER.NUM_WORKERS = 1

Could someone please explain this to me?

 Last edited by: N0zE on Nov. 1, 2024, 10:35 a.m., edited 1 time in total.

Re: tutorial code question  

  By: FazaelAyatollahi on Nov. 1, 2024, 1:40 p.m.

Hi

“detection_dataset2” is just a name, doesn't really impact the code as the dataset is defined by user_config and used in the trainer as trainer = WholeSlideDectectron2Trainer(cfg, user_config=user_config, cpus=cpus) . so by changing the user_config you are able to change the training data

Re: tutorial code question  

  By: N0zE on Nov. 1, 2024, 4:11 p.m.

Thank you for your reply.
I searched for it, but I was having trouble because I didn't have any proof about the problem.