You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.1 kB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # TensorMask in Detectron2
  2. **A Foundation for Dense Object Segmentation**
  3. Xinlei Chen, Ross Girshick, Kaiming He, Piotr Dollár
  4. [[`arXiv`](https://arxiv.org/abs/1903.12174)] [[`BibTeX`](#CitingTensorMask)]
  5. <div align="center">
  6. <img src="http://xinleic.xyz/images/tmask.png" width="700px" />
  7. </div>
  8. In this repository, we release code for TensorMask in Detectron2.
  9. TensorMask is a dense sliding-window instance segmentation framework that, for the first time, achieves results close to the well-developed Mask R-CNN framework -- both qualitatively and quantitatively. It establishes a conceptually complementary direction for object instance segmentation research.
  10. ## Installation
  11. To install, first setup Detectron 2 following [INSTALL.md](https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md). Then to compile the TensorMask-specific op (`swap_align2nat`):
  12. ```bash
  13. cd /path/to/detectron2/projects/TensorMask
  14. python setup.py build develop
  15. ```
  16. ## Training
  17. To train a model, run:
  18. ```bash
  19. python /path/to/detectron2/projects/TensorMask/train_net.py --config-file <config.yaml>
  20. ```
  21. For example, to launch TensorMask BiPyramid training (1x schedule) with ResNet-50 backbone on 8 GPUs,
  22. one should execute:
  23. ```bash
  24. python /path/to/detectron2/projects/TensorMask/train_net.py --config-file configs/tensormask_R_50_FPN_1x.yaml --num_gpus 8
  25. ```
  26. ## Evaluation
  27. Model evaluation can be done similarly (6x schedule with scale augmentation):
  28. ```bash
  29. python /path/to/detectron2/projects/TensorMask/train_net.py --config-file configs/tensormask_R_50_FPN_6x.yaml --eval-only MODEL.WEIGHTS model.pth
  30. ```
  31. # Model Zoo and Baselines
  32. (coming soon)
  33. ## <a name="CitingTensorMask"></a>Citing TensorMask
  34. If you use TensorMask, please use the following BibTeX entry.
  35. ```
  36. @InProceedings{chen2019tensormask,
  37. title={Tensormask: A Foundation for Dense Object Segmentation},
  38. author={Chen, Xinlei and Girshick, Ross and He, Kaiming and Doll{\'a}r, Piotr},
  39. journal={The International Conference on Computer Vision (ICCV)},
  40. year={2019}
  41. }
  42. ```

No Description