NVIDIA / semantic-segmentation

Nvidia Semantic Segmentation monorepo
BSD 3-Clause "New" or "Revised" License
1.76k stars 388 forks source link

Explicit vs hierarchical (your) architecture #162

Open AxMM opened 2 years ago

AxMM commented 2 years ago

Hi, thank you for your amazing work. I need some help, please.

I am trying to make inference to compare results between explicit vs hierarchical (your) architecture. In main branch.

For your hierarchical architecture (HRNet + OCR + multi-scale attention), I am doing this

HPARAMS: [
  {
   dataset: mydataset,
   cv: 0,
   syncbn: true,
   apex: true,
   fp16: true,
   bs_val: 1,
   eval: val,
   n_scales: "0.5,1.0,2.0",
   snapshot: "/dl/hierarchical/logs/train_mydataset_cv0/ocrnet.HRNet_Mscale_granite-waxbill_2021.09.03_04.07/best_checkpoint_ep130.pth",
   arch: ocrnet.HRNet_Mscale,
   result_dir: LOGDIR,
   dump_assets: true,
   dump_all_images: true,
   multi_scale_inference: true,
   log_msinf_to_tb: true,
  },
]

For my understanding you have:

What can I do to run inference in explicit architecture? I think is HRNet + OCR + "explicit attention". I can not find a way to run it. Can you give some tip?

Thanks.