You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you do not know the root cause of the problem / bug, and wish someone to help you, please
include:
When I try to run the demo :
from detectron2.engine import DefaultPredictor
from detectron2.config import get_cfg
cfg = get_cfg()
cfg.merge_from_file("./detectron2_repo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml")
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5 # set threshold for this model
cfg.MODEL.WEIGHTS = "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl"
predictor = DefaultPredictor(cfg)
outputs = predictor(im)
It took 390 seconds to run predictor = DefaultPredictor(cfg)
when I debug the code, it seemed to be pixel_mean = torch.Tensor(cfg.MODEL.PIXEL_MEAN).to(self.device).view(num_channels, 1, 1)
in the rcnn.py which took a long time.
But it works fine on colab.
How can i fix it or what's wrong with my environment?
If you do not know the root cause of the problem / bug, and wish someone to help you, please
include:
When I try to run the demo :
It took 390 seconds to run
predictor = DefaultPredictor(cfg)
when I debug the code, it seemed to be
pixel_mean = torch.Tensor(cfg.MODEL.PIXEL_MEAN).to(self.device).view(num_channels, 1, 1)
in the rcnn.py which took a long time.
But it works fine on colab.
How can i fix it or what's wrong with my environment?
Environment
Python 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0]
Detectron2 Compiler GCC 7.4
DETECTRON2_ENV_MODULE
PyTorch 1.3.0
PyTorch Debug Build False
CUDA available True
GPU 0 GeForce RTX 2080
Pillow 6.1.0
cv2 4.1.0
PyTorch built with:
The text was updated successfully, but these errors were encountered: