rbgirshick/py-faster-rcnn 7139
Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
rbgirshick/fast-rcnn 2888
Fast R-CNN
Faster R-CNN
rbgirshick/rcnn 2093
R-CNN: Regions with Convolutional Neural Network Features
rbgirshick/yacs 633
YACS -- Yet Another Configuration System
Object detection system using deformable part models (DPMs) and latent SVM (voc-release5). You may want to use the latest tarball on my website. The github code may include code changes that have not been tested as thoroughly and will not necessarily reproduce the results on the website.
rbgirshick/caffe-fast-rcnn 344
Caffe fork that supports Fast R-CNN
Deep feature pyramids for various computer vision algorithms (DPMs, pyramid R-CNN, etc.)
Caffe fork that supports SPP_net or faster R-CNN
Cascade Object Detection with Deformable Part Models – Add-on package for voc-release4.01
push eventfacebookresearch/detectron2
commit sha f7b394e059702341c5eb8db2b9a0534779826b4c
make LVISEvaluator config-agnostic Reviewed By: rbgirshick Differential Revision: D25336293 fbshipit-source-id: 8d6799c77893754fa2b0acc163e0f5330c2058fc
push time in 34 minutes
PR closed rbgirshick/py-faster-rcnn
The path to the fetch_faster_rcnn_models.sh script in the demo.py helper message is incorrect. This PR fixes the typo so that users who run the demo before downloading models will be able to copy the path to the script and run it.
pr closed time in an hour
issue commentfacebookresearch/detectron2
How to get input and output tensor names and input dimensions for caffe2 model
I may have misunderstood the question, but inputs are provided by users, therefore users already have information about input tensor and their dimensions.
comment created time in 2 hours
issue closedfacebookresearch/detectron2
Access pred_mask in object Instances
How can I access the tensors (such as pred_mask) contained in the object Instances (the output of the predictor)? I need to use the tensors to further calculations and I don't know how I can extract them.
closed time in 2 hours
ebaccoliissue commentfacebookresearch/detectron2
Access pred_mask in object Instances
You can find these info in documentation: https://detectron2.readthedocs.io/modules/structures.html#detectron2.structures.Instances
comment created time in 2 hours
issue closedlvis-dataset/lvis-api
How to get the dataset by api?
❓ Questions and Help
Thanks for offering this api. I can't open the website https://www.lvisdataset.org/,so I want to ask you how to get the dataset by this api or the instruction of this api. Thank you !!!
closed time in 4 hours
curryJissue commentlvis-dataset/lvis-api
How to get the dataset by api?
The correct website link is: https://www.lvisdataset.org You can't download the dataset via the API. You can download the dataset here: https://www.lvisdataset.org/dataset Example usage for evaluation can be found here: https://github.com/lvis-dataset/lvis-api/blob/master/test.py
comment created time in 4 hours
issue openedfacebookresearch/detectron2
How to get input and output tensor names and input dimensions for caffe2 model
❓ How to do something using detectron2
Describe what you want to do, including:
- what inputs you will provide, if any:
- what outputs you are expecting:
❓ What does an API do and how to use it?
Please link to which API or documentation you're asking about from https://detectron2.readthedocs.io/
For meaning of a config, please see https://detectron2.readthedocs.io/modules/config.html#config-references
Code:
The following code gives the output and I want the input tensor and input dims as well. Is there any changes required
from caffe2.python import workspace import numpy as np from detectron2.export import Caffe2Model import torch
print(torch.version)
import cv2 img = cv2.imread('test.png') image = torch.as_tensor(img.astype("float32").transpose(2, 0, 1)) data = {'image': image, 'height': image.shape[1], 'width': image.shape[2]} caffe2_model = Caffe2Model.load_protobuf('.') output = caffe2_model([data]) print('\nOuput:\n',output)
NOTE:
print(torch.version) print ("Creating random data") data = np.random.rand(3, 2) #print(data) print ("Adding data to workspace ...") workspace.FeedBlob("mydata", data) print ("Retrieving data from workspace") mydata = workspace.FetchBlob("mydata") #print(mydata)
import cv2 img = cv2.imread('test.png') image = torch.as_tensor(img.astype("float32").transpose(2, 0, 1)) data = {'image': image, 'height': image.shape[1], 'width': image.shape[2]} caffe2_model = Caffe2Model.load_protobuf('.') output = caffe2_model([data]) print('\nOuput:\n',output)
created time in 5 hours
push eventfacebookresearch/fvcore
commit sha 037302acd51b05c6c88f6c3495b5ea340cc4cb94
Added deprecation warnings to PathManager and ManifoldPathHandler init. Summary: Added deprecation warnings to PathManager and ManifoldPathHandler init. Reviewed By: lyttonhao Differential Revision: D25362677 fbshipit-source-id: 3b309872bf077c079e4839e609b344ea3b964cb6
push time in 5 hours
issue openedfacebookresearch/detectron2
Access pred_mask in object Instances
How can I access the tensors (such as pred_mask) contained in the object Instances (the output of the predictor)? I need to use the tensors to further calculations and I don't know how I can extract them.
created time in 5 hours
issue commentcocodataset/cocoapi
Unable to download coco dataset with gsutil [ServiceException, AccessDeniedException]
Same issue, the bucket might have been removed
comment created time in 5 hours
issue commentcocodataset/cocoapi
pycocotools fails to install on python 3.6
There's a few differences between this repo and the published package including a common folder that includes gason.cpp gason.h maskApi.c maskApi.h and these changes:
--- pycocotools-2.0.2/pycocotools/coco.py 2020-08-14 19:41:27.000000000 +0100
+++ cocoapi/PythonAPI/pycocotools/coco.py 2020-12-08 15:44:57.804798462 +0000
@@ -81,8 +81,7 @@
if not annotation_file == None:
print('loading annotations into memory...')
tic = time.time()
- with open(annotation_file, 'r') as f:
- dataset = json.load(f)
+ dataset = json.load(open(annotation_file, 'r'))
assert type(dataset)==dict, 'annotation file format {} not supported'.format(type(dataset))
print('Done (t={:0.2f}s)'.format(time.time()- tic))
self.dataset = dataset
@@ -315,8 +314,7 @@
print('Loading and preparing results...')
tic = time.time()
if type(resFile) == str or (PYTHON_VERSION == 2 and type(resFile) == unicode):
- with open(resFile) as f:
- anns = json.load(f)
+ anns = json.load(open(resFile))
elif type(resFile) == np.ndarray:
anns = self.loadNumpyAnnotations(resFile)
else:
@@ -440,4 +438,4 @@
"""
rle = self.annToRLE(ann)
m = maskUtils.decode(rle)
- return m
+ return m
\ No newline at end of file
comment created time in 6 hours
issue openedcocodataset/cocoapi
pycocotools fails to install on python 3.6
Currently if you run pip install pycocotools on Python 3.6 (or earlier) you will see something like this:
ERROR: Command errored out with exit status 1:
[...]
File "/tmp/easy_install-i3fx38y0/numpy-1.20.0rc1/setup.py", line 30, in <module>
package_dir={'pycocotools': 'pycocotools'},
RuntimeError: Python version >= 3.7 required.
[email protected] came out a few days ago but I couldn't quite figure out why it was being installed.
I unpacked the release of pycocotools from pypi and found this in the setup.py
setup_requires = [
'setuptools>=18.0',
'cython>=0.27.3',
'numpy',
]
dist.Distribution().fetch_build_eggs(setup_requires)
import numpy as np
ext_modules = [
Extension(
'pycocotools._mask',
sources=['./common/maskApi.c', 'pycocotools/_mask.pyx'],
include_dirs=[np.get_include(), './common'],
extra_compile_args=[] if platform.system() == 'Windows' else ['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
)
]
I could see that there is an open dependency on numpy, so I tried to look at the source and found different contents which were last changed 3 years ago: https://github.com/cocodataset/cocoapi/blob/8c9bcc3cf640524c4c20a9c40e89cb6a2f2fa0e9/PythonAPI/setup.py#L1-L27
Possibly related to #416 -- what is going on with the published package on pypi?
created time in 6 hours
issue commentfacebookresearch/detectron2
Loss weight for the mask head (and possibly the box head)
+1
comment created time in 6 hours
startedrbgirshick/fast-rcnn
started time in 10 hours
startedrbgirshick/py-faster-rcnn
started time in 14 hours
issue commentcocodataset/cocoapi
A great explanation of the coco file format along with detailed explanation of RLE and iscrowd - Coco file format
comment created time in 16 hours
startedrbgirshick/py-faster-rcnn
started time in 17 hours
issue openedlvis-dataset/lvis-api
How to get the dataset by api?
❓ Questions and Help
Thanks for offering this api. I can't open the website https://www.lvisdataset.org/,so I want to ask you how to get the dataset by this api or the instruction of this api. Thank you !!!
created time in 18 hours
startedrbgirshick/voc-dpm
started time in 20 hours
issue closedfacebookresearch/detectron2
How to transform a detectron2 Mask R-CNN model to Caffe format and how to use the generated model
❓ How to do something using detectron2
Describe what you want to do, including:
- what inputs you will provide, if any:
- A detectron2 Mask R-CNN model
- what outputs you are expecting:
- An exported Caffe format model
- It would be great to have a reference for how to do this and how to use the generated model
❓ What does an API do and how to use it?
Please link to which API or documentation you're asking about from https://detectron2.readthedocs.io/
- https://detectron2.readthedocs.io/tutorials/deployment.html
For meaning of a config, please see https://detectron2.readthedocs.io/modules/config.html#config-references
NOTE:
-
Only general answers are provided. If you want to ask about "why X did not work" for something you did, please use the Unexpected behaviors issue template.
-
About how to implement new models / new dataloader / new training logic, etc., check documentation first.
-
We do not answer machine learning / computer vision questions that are not specific to detectron2, such as how a model works, how to improve your training/make it converge, or what algorithm/methods can be used to achieve X.
closed time in 21 hours
masotrixissue commentfacebookresearch/detectron2
How to transform a detectron2 Mask R-CNN model to Caffe format and how to use the generated model
We will not support converting a Mask R-CNN to caffe format.
comment created time in 21 hours
issue closedfacebookresearch/detectron2
Pointrend:why not update maskloss and only update maskpointloss?
Hello,Pointrend:why not update maskloss and only update maskpointloss?thanks!
closed time in 21 hours
RuohGuoissue commentfacebookresearch/detectron2
Pointrend:why not update maskloss and only update maskpointloss?
This is not among the types of issues we answer.
comment created time in 21 hours
issue openedfacebookresearch/detectron2
How to transform a detectron2 Mask R-CNN model to Caffe format and how to use the generated model
❓ How to do something using detectron2
Describe what you want to do, including:
- what inputs you will provide, if any:
- A detectron2 Mask R-CNN model
- what outputs you are expecting:
- An exported Caffe format model
- It would be great to have a reference for how to do this and how to use the generated model
❓ What does an API do and how to use it?
Please link to which API or documentation you're asking about from https://detectron2.readthedocs.io/
- https://detectron2.readthedocs.io/tutorials/deployment.html
For meaning of a config, please see https://detectron2.readthedocs.io/modules/config.html#config-references
NOTE:
-
Only general answers are provided. If you want to ask about "why X did not work" for something you did, please use the Unexpected behaviors issue template.
-
About how to implement new models / new dataloader / new training logic, etc., check documentation first.
-
We do not answer machine learning / computer vision questions that are not specific to detectron2, such as how a model works, how to improve your training/make it converge, or what algorithm/methods can be used to achieve X.
created time in a day
issue commentfacebookresearch/detectron2
assert len(class_names) == precisions.shape[2]
If you need help to solve an unexpected issue you observed, please include details following the "Unexpected behaviors" issue template.
comment created time in a day
issue commentfacebookresearch/detectron2
Pointrend:why not update maskloss and only update maskpointloss?
Sorry, I've got it. But I have a new question. When I added the pointrend module to blendmask, I found that the mask loss of blendmask was falling more slowly and get worse segmentation accuracy. 1.blendmask to train:89.2% 2.blendmask and pointrend to train, only blendmask to predict:89.0% 3.blendmask and pointrend to train, blendmask and pointrend to predict:88.5% Do you know why? I would appreciate it if you could let me know. Thanks!
comment created time in a day
issue closedfacebookresearch/detectron2
Good afternoon, my question is how can I get the outline of each object. The documentation says: “pred_masks”: a Tensor of shape (N, H, W), masks for each detected instance. In practice, I only get an array of False.
But if I output the self-mask from the Visualizer function, I get a normal data array from which I can take the contour I need.
Should it be so? And how do I get the outline of each object? I did not find an answer in the documentation.
cfg = get_cfg()
cfg.MODEL.DEVICE=("cpu")
cfg.merge_from_file("../configs/COCO-PanopticSegmentation/panoptic_fpn_R_101_3x.yaml")
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5
cfg.MODEL.WEIGHTS = "detectron2://COCO-PanopticSegmentation/panoptic_fpn_R_101_3x/139514519/model_final_cafdb1.pkl"
predictor = DefaultPredictor(cfg)
im = cv2.imread("1.png")
outputs = predictor(im)
class_names = MetadataCatalog.get(cfg.DATASETS.TRAIN[0]).stuff_classes
print(np.array(outputs["instances"].pred_masks)) #return array where only 'False'
The array after executing my code looks like this:
[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]...
closed time in a day
ScantyDaemonissue commentfacebookresearch/detectron2
Thank you very much for your help. I wrote a new script. Now I can display the mask of each found object in a separate file. Everything worked out!
outputs = predictor(im)
s=np.array(outputs["sem_seg"])
s=(s.astype(int))
print(s)
s=(np.where(s>=1, 255, s))
acount=0
for yi in s:
cv2.imwrite(str(acount)+'maske.jpg', yi)
acount+=1
comment created time in a day
Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
fork in a day