dvlab-research / PanopticFCN

Fully Convolutional Networks for Panoptic Segmentation (CVPR2021 Oral)
Apache License 2.0
391 stars 53 forks source link

how to test image? #22

Closed szh91 closed 3 years ago

yanwei-li commented 3 years ago

Hi, if you want to test a single image or video, you can directly use demo.py in detectron2 by change the code: From

# To use demo for Panoptic-DeepLab, please uncomment the following two lines.
# from detectron2.projects.panoptic_deeplab import add_panoptic_deeplab_config  # noqa
# add_panoptic_deeplab_config(cfg)

To

from panopticfcn.config import add_panopticfcn_config  # noqa
add_panopticfcn_config(cfg)

Maybe this issue#17 could also help you.