Skip to content

sanderisbestok/detectron

Repository files navigation

Dit lezen voor andere dataset en niet deze implementatie gebruiken: https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5#scrollTo=7unkuuiqLdqd

To install:

  • conda install -c conda-forge opencv
  • pip3 install torch torchvision torchaudio
  • module load 2020
  • module load CUDA/11.0.2-GCC-9.3.0
  • python -m pip install -e .

To use: module load 2020
module load CUDA/11.0.2-GCC-9.3.0
module load OpenCV/4.5.0-fosscuda-2020a-Python-3.8.2 conda activate detectron \

Demo Commando: python demo.py --config-file ../projects/TridentNet/configs/tridentnet_fast_R_101_C4_3x.yaml --input ../../../download.jpeg --opts MODEL.WEIGHTS ../pretrained/tridentnet.pkl

train_trident.py gebruiken
python train_trident.py --num-gpus 2

results zijn categorie + bbox + score for instance in prediction["instances"]: txt.append([0] + instance["bbox"] + instance["score"]) print(txt)

code te vinden in detectron2/evaluation/cocoevaluation

Detectron2 is Facebook AI Research's next generation library that provides state-of-the-art detection and segmentation algorithms. It is the successor of Detectron and maskrcnn-benchmark. It supports a number of computer vision research projects and production applications in Facebook.

What's New

  • Includes new capabilities such as panoptic segmentation, Densepose, Cascade R-CNN, rotated bounding boxes, PointRend, DeepLab, etc.
  • Used as a library to support building research projects on top of it.
  • Models can be exported to TorchScript format or Caffe2 format for deployment.
  • It trains much faster.

See our blog post to see more demos and learn about detectron2.

Installation

See installation instructions.

Getting Started

See Getting Started with Detectron2, and the Colab Notebook to learn about basic usage.

Learn more at our documentation. And see projects/ for some projects that are built on top of detectron2.

Model Zoo and Baselines

We provide a large set of baseline results and trained models available for download in the Detectron2 Model Zoo.

License

Detectron2 is released under the Apache 2.0 license.

Citing Detectron2

If you use Detectron2 in your research or wish to refer to the baseline results published in the Model Zoo, please use the following BibTeX entry.

@misc{wu2019detectron2,
  author =       {Yuxin Wu and Alexander Kirillov and Francisco Massa and
                  Wan-Yen Lo and Ross Girshick},
  title =        {Detectron2},
  howpublished = {\url{https://github.com/facebookresearch/detectron2}},
  year =         {2019}
}