Questions tagged [detectron]

Use "detectron" tag for questions related to FAIR's detectron or detectron2 framework for object detection and segmentation.

217 questions
0
votes
1 answer

Error training custom dataset with Detectron2

I am trying to train a custom data for image segmentation with Detectron2, but I have an issue while using the config files (like mask_rcnn_R_50_FPN_3x.yaml). Here is the the configuration that I use for training: cfg = get_cfg() cfg.MODEL.DEVICE =…
0
votes
1 answer

Running detectron2 with Cuda (4GB GPU)

I'm getting below error: RuntimeError: CUDA out of memory. Tried to allocate 54.00 MiB (GPU 0; 4.00 GiB total capacity; 624.92 MiB already allocated; 2.02 GiB free; 720.00 MiB reserved in total by PyTorch) If reserved memory is >> allocated memory…
0
votes
0 answers

How can I calculate mask Intersection Over Union in Detectron2?

There is a related question/answer for calculating the bounding box Intersection Over Union (IoU) in Detectron2 One of the solutions shows how to use the detectron2 structures module to calculate bounding box IoU. Is there a similar solution using…
user3731622
  • 4,844
  • 8
  • 45
  • 84
0
votes
0 answers

Use Detectron2 model without pretrained weigths

How can I train a faster RCNN model from detectron 2 without pretrained weights? Can I use the faster RCNN models in config for training from scratch based on my own dataset, if I dont have pretrained weights?
0
votes
0 answers

AP metrics on new data in object detection

I'm using a dataset in COCO format in order to train a net of type "R_101_FPN_3x". The AP dataset is shown from evaluator in the validation set. How can I have the AP evaluation on new input images? At the moment I get the predicted boxes on new…
unrue
  • 149
  • 1
  • 2
  • 10
0
votes
0 answers

Detectron2 and Imagenet models

I'm bit confused about Detectron models in model zoo. According to the user guide, all COCO models are pretrained with coco2017, so having about 80 output classes. What about Imagenet models? Imagenet dataset has hundreds of output classes. So,…
unrue
  • 149
  • 1
  • 2
  • 10
0
votes
0 answers

Error while Installing Detectron2 for instance segmentation

While I am installing Detectron2 alongside Yolov7, I got an error like this. Is this related with Visual Studio or Cuda? how can I fix this? C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include\crt/host_config.h(160): fatal error C1189:…
tugba
  • 1
  • 1
0
votes
2 answers

RuntimeError: Error compiling objects for extension while installing detectron2

I’m trying to install detectron2 on my local machine. A cpp_extension.py located in C:\Users\Username\miniconda3\envs\pytorch_env\lib\site-packages\torch\utils\cpp_extension.py fails to compile and throws a raise RuntimeError(message) from…
0
votes
0 answers

Extract features corresponding to each bounding box after applying Faster RCNN using Detectron2

I found a code here that can return the features corresponding to each bounding box detected after applying a Faster RCNN model using Detectron2 framework. from detectron2.engine import DefaultPredictor from detectron2.config import get_cfg from…
0
votes
0 answers

Failure to install detectron2 on linux OS with amd chipset

I am trying to install detectron2 on linux with AMD chipset RoCM. System Configurations RHEL Linux with Centos OS 7.9 with AMD M125x Chipset . I have also installed pytorch 1.10.0 for rocm 4.2 and also installed torchaudio and torchvision. I am…
0
votes
0 answers

IUV generation from detectron2 densepsoe output

I'm trying to generate three channel IUV image from detectrone2 densepose as: IUV image needed But instead, I receive this image: Final UV map I've used the code from Is there a way to obtain IUV map from image in tensorflow? and modified it to the…
0
votes
1 answer

Load a subset of validation set into detectron2

I am trying get the evaluation loss metrics on detectron2 using COCOEvaluator. However, there is around 40k+ dataset in the evaluation folder which caused it to take around 45 minutes per evaluation. The dataset is downloaded from COCO website…
Barnacle Own
  • 85
  • 1
  • 9
0
votes
1 answer

Convert Detectron2 model to torchscript

i want to convert detectron2 'COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml model' to torchscript. I used torc my code are given below. import cv2 import numpy as np import torch from detectron2 import model_zoo from detectron2.config…
0
votes
0 answers

warning while training maskrcnn using detectron

I am training mask rcnn using detectron framework and getting below…
Radhi
  • 6,289
  • 15
  • 47
  • 68
0
votes
1 answer

Configure python to use same SSL certificates as wget?

While using detectron2 I've ran into SSL issues. However, it seems the SSL issues are related to python as they don't appear while using wget. I can't use detectron2 to download the weights file…
user3731622
  • 4,844
  • 8
  • 45
  • 84