Skip to content

Commit

Permalink
[Enhancement] Fix the build_segmentor in colab demo (open-mmlab#1551)
Browse files Browse the repository at this point in the history
* [Enhancement] Delete DS_Store file

* [Enhancement] Fix the build_segmentor
  • Loading branch information
MeowZheng authored May 5, 2022
1 parent 4630918 commit 9b3338f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/MMSegmentation_Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,7 @@
"datasets = [build_dataset(cfg.data.train)]\n",
"\n",
"# Build the detector\n",
"model = build_segmentor(\n",
" cfg.model, train_cfg=cfg.get('train_cfg'), test_cfg=cfg.get('test_cfg'))\n",
"model = build_segmentor(cfg.model)\n",
"# Add an attribute for visualization convenience\n",
"model.CLASSES = datasets[0].CLASSES\n",
"\n",
Expand Down

0 comments on commit 9b3338f

Please sign in to comment.