Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Colab Tutorial as a Python script does not give expected results #5443

Open
moritzw01 opened this issue Feb 27, 2025 · 0 comments
Open

Comments

@moritzw01
Copy link

moritzw01 commented Feb 27, 2025

I tried to reproduce the Code from the Tutorial and the Training ran through and produced an Output, but when I tried to predict with the weights from the training, I got only results when I lowered the confidence score to 0.05, which are basically no predictions.

Instructions To Reproduce the Issue:

from detectron2.structures import BoxMode
from detectron2.data import DatasetCatalog, MetadataCatalog
import os 
import json 
#import cv2 
import numpy as np 
import random
#from detectron2.utils.visualizer import Visualizer
import matplotlib.pyplot as plt
import torch
from detectron2.engine import DefaultTrainer
from detectron2.config import get_cfg
from detectron2 import model_zoo

def get_balloon_dicts(img_dir):
    json_file = os.path.join(img_dir, "via_region_data.json")
    with open(json_file) as f:
        imgs_anns = json.load(f)

    dataset_dicts = []
    for idx, v in enumerate(imgs_anns.values()):
        record = {}
        
        filename = os.path.join(img_dir, v["filename"])
        height, width = plt.imread(filename).shape[:2]
        
        record["file_name"] = filename
        record["image_id"] = idx
        record["height"] = height
        record["width"] = width
      
        annos = v["regions"]
        objs = []
        for _, anno in annos.items():
            assert not anno["region_attributes"]
            anno = anno["shape_attributes"]
            px = anno["all_points_x"]
            py = anno["all_points_y"]
            poly = [(x + 0.5, y + 0.5) for x, y in zip(px, py)]
            poly = [p for x in poly for p in x]

            obj = {
                "bbox": [np.min(px), np.min(py), np.max(px), np.max(py)],
                "bbox_mode": BoxMode.XYXY_ABS,
                "segmentation": [poly],
                "category_id": 0,
            }
            objs.append(obj)
        record["annotations"] = objs
        dataset_dicts.append(record)
    return dataset_dicts

if __name__ == "__main__":
    data_dir = '/Users/moritz/Downloads/balloon/'
    for d in ["train", "val"]:
        DatasetCatalog.register("balloon_" + d, lambda d=d: get_balloon_dicts(data_dir + d))
        MetadataCatalog.get("balloon_" + d).set(thing_classes=["balloon"])
    balloon_metadata = MetadataCatalog.get("balloon_train")

    #dataset_dicts = get_balloon_dicts("/Users/moritz/Downloads/balloon/train")
    # for d in random.sample(dataset_dicts, 3):
    #     img = cv2.imread(d["file_name"])
    #     visualizer = Visualizer(img[:, :, ::-1], metadata=balloon_metadata, scale=0.5)
    #     out = visualizer.draw_dataset_dict(d)

    #     plt.imshow( out.get_image()[:, :, ::-1])
    #     plt.show()


    cfg = get_cfg()
    cfg.merge_from_file(model_zoo.get_config_file("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml"))
    cfg.DATASETS.TRAIN = ("balloon_train",)
    cfg.MODEL.DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
    cfg.DATASETS.TEST = ()
    cfg.DATALOADER.NUM_WORKERS = 2
    cfg.MODEL.WEIGHTS = model_zoo.get_checkpoint_url("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml")  # Let training initialize from model zoo
    cfg.SOLVER.IMS_PER_BATCH = 2  # This is the real "batch size" commonly known to deep learning people
    cfg.SOLVER.BASE_LR = 0.00025  # pick a good LR
    cfg.SOLVER.MAX_ITER = 300    # 300 iterations seems good enough for this toy dataset; you will need to train longer for a practical dataset
    cfg.SOLVER.STEPS = []        # do not decay learning rate
    cfg.MODEL.ROI_HEADS.BATCH_SIZE_PER_IMAGE = 128   # The "RoIHead batch size". 128 is faster, and good enough for this toy dataset (default: 512)
    cfg.MODEL.ROI_HEADS.NUM_CLASSES = 1  # only has one class (ballon). (see https://detectron2.readthedocs.io/tutorials/datasets.html#update-the-config-for-new-datasets)
    cfg.OUTPUT_DIR = './output'
    # NOTE: this config means the number of classes, but a few popular unofficial tutorials incorrect uses num_classes+1 here.

    os.makedirs(cfg.OUTPUT_DIR, exist_ok=True)
    trainer = DefaultTrainer(cfg) 
    trainer.resume_or_load(resume=False)
    trainer.train()


### I ran the training on a gpu cluster first and put the input into the script below 
from detectron2.config import get_cfg
import os 
from detectron2.engine import DefaultPredictor
from detectron2 import model_zoo
import train
import random
from detectron2.utils.visualizer import Visualizer
from detectron2.data import MetadataCatalog
import cv2
import matplotlib.pyplot as plt
from detectron2.utils.visualizer import ColorMode


cfg = get_cfg()
cfg.merge_from_file(model_zoo.get_config_file("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml"))
cfg.MODEL.WEIGHTS = '/Users/moritz/model_0000299.pth'  # path to the model we just trained
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5   # set a custom testing threshold
cfg.MODEL.DEVICE = 'cpu'    
predictor = DefaultPredictor(cfg)
dataset_dicts = train.get_balloon_dicts("/Users/moritz/Downloads/balloon/val")
balloon_metadata = MetadataCatalog.get("balloon_train")
for d in random.sample(dataset_dicts, 5):    
    im = cv2.imread(d["file_name"])
    outputs = predictor(im)  # format is documented at https://detectron2.readthedocs.io/tutorials/models.html#model-output-format
    v = Visualizer(im[:, :, ::-1],
                   metadata=balloon_metadata, 
                   scale=0.5, 
                   instance_mode=ColorMode.IMAGE_BW   # remove the colors of unsegmented pixels. This option is only available for segmentation models
    )
    out = v.draw_instance_predictions(outputs["instances"].to("cpu"))
    plt.imshow(out.get_image()[:, :, ::-1])
    plt.show()
    print(outputs)



Expected behavior:

Since the code is an exact copy of the tutorial code I was expecting the predictions to be working. But I only get predictions, if I lower the confidence score threshold to 0.05 which are no real predictions. I do not really understand, why the code is not working. I also tried with saving the weights every 10 iterations and trying different weights, but the result, was more or less the same.

Environment:

I don't think the error is due to an installation or version error because, the code is running on the gpu and on cpu and locally on the cpu and produces no error messages in all cases.

Paste the output of the following command:
my environment on the laptop:

absl-py                   2.1.0                    pypi_0    pypi
annotated-types           0.6.0            py39hca03da5_0  
antlr4-python3-runtime    4.9.3                    pypi_0    pypi
aom                       3.5.0                h7ea286d_0    conda-forge
appdirs                   1.4.4              pyhd3eb1b0_0  
black                     24.10.0                  pypi_0    pypi
blas                      1.0                    openblas  
bottleneck                1.4.2            py39hbda83bc_0  
brotli                    1.0.9                h80987f9_9  
brotli-bin                1.0.9                h80987f9_9  
brotli-python             1.0.9            py39h313beb8_9  
bzip2                     1.0.8                h80987f9_6  
c-ares                    1.34.4               h5505292_0    conda-forge
ca-certificates           2024.12.31           hca03da5_0  
cachecontrol              0.14.0           py39hca03da5_1  
cachecontrol-with-filecache 0.14.0           py39hca03da5_1  
cachy                     0.3.0              pyhd3eb1b0_0  
cairo                     1.16.0            h1e71087_1016    conda-forge
certifi                   2025.1.31        py39hca03da5_0  
cffi                      1.17.1           py39h3eb5a62_1  
charset-normalizer        3.3.2              pyhd3eb1b0_0  
click                     8.1.7            py39hca03da5_0  
click-default-group       1.2.2            py39hca03da5_0  
clikit                    0.6.2                      py_0  
cloudpickle               3.1.1                    pypi_0    pypi
conda-lock                2.5.6            py39hca03da5_0  
conda-project             0.4.2            py39hca03da5_0  
crashtest                 0.3.1              pyhd3eb1b0_1  
cryptography              43.0.3           py39h8026fc7_1  
cycler                    0.11.0             pyhd3eb1b0_0  
detectron2                0.6                      pypi_0    pypi
distlib                   0.3.8            py39hca03da5_0  
ensureconda               1.4.4            py39hca03da5_1  
expat                     2.6.4                h286801f_0    conda-forge
ffmpeg                    5.1.2           gpl_hf318d42_106    conda-forge
filelock                  3.13.1           py39hca03da5_0  
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_3    conda-forge
fontconfig                2.14.2               h82840c6_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.51.0           py39h80987f9_0  
freetype                  2.12.1               h1192e45_0  
fsspec                    2024.12.0        py39hca03da5_0  
fvcore                    0.1.5.post20221221          pypi_0    pypi
gettext                   0.21.1               h0186832_0    conda-forge
giflib                    5.2.2                h80987f9_0  
gitdb                     4.0.7              pyhd3eb1b0_0  
gitpython                 3.1.43           py39hca03da5_0  
gmp                       6.2.1                hc377ac9_3  
gmpy2                     2.1.2            py39h8c48613_0  
gnutls                    3.7.8                h9f1a10d_0    conda-forge
graphite2                 1.3.13            h9f76cd9_1001    conda-forge
grpcio                    1.69.0                   pypi_0    pypi
harfbuzz                  6.0.0                hd7af201_1    conda-forge
hdf5                      1.12.2          nompi_ha7af310_101    conda-forge
html5lib                  1.1                pyhd3eb1b0_0  
hydra-core                1.3.2                    pypi_0    pypi
icu                       72.1                 he12128b_0    conda-forge
idna                      3.7              py39hca03da5_0  
importlib-metadata        8.5.0            py39hca03da5_0  
importlib_metadata        8.5.0                hd3eb1b0_0  
iopath                    0.1.9                    pypi_0    pypi
jaraco.classes            3.2.1              pyhd3eb1b0_0  
jasper                    2.0.33               hc3cd1e9_1    conda-forge
jinja2                    3.1.4            py39hca03da5_1  
joblib                    1.4.2            py39hca03da5_0  
jpeg                      9e                   h80987f9_3  
keyring                   24.3.1           py39hca03da5_0  
kiwisolver                1.4.4            py39h313beb8_0  
krb5                      1.21.3               hf3e1bf2_0  
lame                      3.100             h1a8c8d9_1003    conda-forge
lcms2                     2.16                 he93ba84_0  
lerc                      4.0.0                h313beb8_0  
libaec                    1.0.6                hb7217d7_1    conda-forge
libarchive                3.7.2                h82b9b87_0    conda-forge
libblas                   3.9.0           19_osxarm64_openblas    conda-forge
libbrotlicommon           1.0.9                h80987f9_9  
libbrotlidec              1.0.9                h80987f9_9  
libbrotlienc              1.0.9                h80987f9_9  
libcblas                  3.9.0           19_osxarm64_openblas    conda-forge
libcurl                   8.4.0                h2d989ff_0    conda-forge
libcxx                    14.0.6               h848a8c0_0  
libdeflate                1.22                 h80987f9_0  
libedit                   3.1.20230828         h80987f9_0  
libev                     4.33                 h93a5062_2    conda-forge
libexpat                  2.6.4                h286801f_0    conda-forge
libffi                    3.4.4                hca03da5_1  
libgfortran               5.0.0           13_2_0_hd922786_3    conda-forge
libgfortran5              13.2.0               hf226fd6_3    conda-forge
libglib                   2.80.2               h535f939_0    conda-forge
libiconv                  1.17                 h0d3ecfb_2    conda-forge
libidn2                   2.3.7                h93a5062_0    conda-forge
libintl                   0.22.5               h8414b35_3    conda-forge
libjpeg-turbo             2.0.0                h1a28f6b_0  
liblapack                 3.9.0           19_osxarm64_openblas    conda-forge
liblapacke                3.9.0           19_osxarm64_openblas    conda-forge
libnghttp2                1.52.0               hae82a92_0    conda-forge
libopenblas               0.3.24          openmp_hd76b1f2_0    conda-forge
libopencv                 4.6.0            py39hcd7568c_9    conda-forge
libopus                   1.3.1                h27ca646_1    conda-forge
libpng                    1.6.39               h80987f9_0  
libprotobuf               3.21.12              hb5ab8b9_0    conda-forge
libsqlite                 3.46.0               hfb93653_0    conda-forge
libssh2                   1.11.0               h7a5bd25_0    conda-forge
libtasn1                  4.19.0               h1a8c8d9_0    conda-forge
libtiff                   4.5.1                hc9ead59_1  
libunistring              0.9.10               h3422bc3_0    conda-forge
libvpx                    1.11.0               hc470f4d_3    conda-forge
libwebp                   1.3.2                ha3663a8_0  
libwebp-base              1.3.2                h80987f9_1  
libxml2                   2.11.5               he3bdae6_0    conda-forge
libzlib                   1.2.13               hfb2fe0b_6    conda-forge
llvm-openmp               15.0.7               h7cfbb63_0    conda-forge
lockfile                  0.12.2           py39hca03da5_0  
lz4-c                     1.9.4                h313beb8_1  
lzo                       2.10              h93a5062_1001    conda-forge
markdown                  3.7                      pypi_0    pypi
markupsafe                2.1.3            py39h80987f9_1  
matplotlib                3.5.3            py39hca03da5_0  
matplotlib-base           3.5.3            py39hc377ac9_0  
more-itertools            10.3.0           py39hca03da5_0  
mpc                       1.1.0                h8c48613_1  
mpfr                      4.0.2                h695f6f0_1  
mpmath                    1.3.0            py39hca03da5_0  
msgpack-python            1.0.3            py39h525c30c_0  
mypy-extensions           1.0.0                    pypi_0    pypi
ncurses                   6.4                  h313beb8_0  
nettle                    3.8.1                h63371fa_1    conda-forge
networkx                  3.2.1            py39hca03da5_0  
numexpr                   2.10.1           py39h5d9532f_0  
numpy                     1.26.4           py39h3b2db8e_0  
numpy-base                1.26.4           py39ha9811e2_0  
omegaconf                 2.3.0                    pypi_0    pypi
opencv                    4.6.0            py39hdf13c20_9    conda-forge
openh264                  2.3.1                hb7217d7_2    conda-forge
openjpeg                  2.5.2                h54b8e55_0  
openssl                   3.4.0                h81ee809_1    conda-forge
p11-kit                   0.24.1               h29577a5_0    conda-forge
packaging                 24.2             py39hca03da5_0  
pandas                    1.5.3            py39h78102c4_0  
pastel                    0.2.1                      py_0  
pathspec                  0.12.1                   pypi_0    pypi
pcre2                     10.43                h26f9a81_0    conda-forge
pexpect                   4.8.0              pyhd3eb1b0_3  
pillow                    11.0.0           py39h84e58ab_1  
pip                       24.2             py39hca03da5_0  
pixman                    0.40.0               h27ca646_0    conda-forge
pkginfo                   1.11.2           py39hca03da5_0  
platformdirs              3.10.0           py39hca03da5_0  
portalocker               3.1.1                    pypi_0    pypi
protobuf                  5.29.3                   pypi_0    pypi
ptyprocess                0.7.0              pyhd3eb1b0_2  
py-opencv                 4.6.0            py39h85045c0_9    conda-forge
pybind11-abi              4                    hd3eb1b0_1  
pycocotools               2.0.8                    pypi_0    pypi
pycparser                 2.21               pyhd3eb1b0_0  
pydantic                  2.10.3           py39hca03da5_0  
pydantic-core             2.27.1           py39h2aea54e_0  
pylev                     1.3.0                      py_0  
pyopenssl                 24.2.1           py39hca03da5_0  
pyparsing                 3.2.0            py39hca03da5_0  
pysocks                   1.7.1            py39hca03da5_0  
python                    3.9.18          hd7ebdb9_1_cpython    conda-forge
python-dateutil           2.9.0post0       py39hca03da5_2  
python-dotenv             0.21.0           py39hca03da5_0  
python-libarchive-c       5.1                pyhd3eb1b0_0  
python_abi                3.9                      5_cp39    conda-forge
pytorch                   2.5.1                   py3.9_0    pytorch
pytz                      2024.1           py39hca03da5_0  
pyyaml                    6.0.2            py39h80987f9_0  
readline                  8.2                  h1a28f6b_0  
requests                  2.32.3           py39hca03da5_1  
ruamel.yaml               0.18.6           py39h80987f9_0  
ruamel.yaml.clib          0.2.8            py39h80987f9_0  
scikit-learn              1.6.1            py39h313beb8_0  
scipy                     1.13.1           py39hd336fd7_1    anaconda
setuptools                75.1.0           py39hca03da5_0  
shellingham               1.5.0            py39hca03da5_0  
six                       1.16.0             pyhd3eb1b0_1  
smmap                     4.0.0              pyhd3eb1b0_0  
sqlite                    3.45.3               h80987f9_0  
svt-av1                   1.4.1                h7ea286d_0    conda-forge
sympy                     1.13.3           py39hca03da5_0  
tabulate                  0.9.0                    pypi_0    pypi
tensorboard               2.18.0                   pypi_0    pypi
tensorboard-data-server   0.7.2                    pypi_0    pypi
termcolor                 2.5.0                    pypi_0    pypi
threadpoolctl             3.5.0            py39h33ce5c2_0  
tk                        8.6.14               h6ba3021_0  
tomli                     2.0.1            py39hca03da5_0  
tomlkit                   0.13.2           py39hca03da5_0  
toolz                     0.12.0           py39hca03da5_0  
torchaudio                2.5.1                  py39_cpu    pytorch
torchvision               0.20.1                 py39_cpu    pytorch
tornado                   6.4.2            py39h80987f9_0  
tqdm                      4.67.1                   pypi_0    pypi
typing-extensions         4.12.2           py39hca03da5_0  
typing_extensions         4.12.2           py39hca03da5_0  
tzdata                    2024b                h04d1e81_0  
unicodedata2              15.1.0           py39h80987f9_1  
urllib3                   1.26.19          py39hca03da5_0  
virtualenv                20.28.0          py39hca03da5_0  
webencodings              0.5.1            py39hca03da5_1  
werkzeug                  3.1.3                    pypi_0    pypi
wheel                     0.44.0           py39hca03da5_0  
x264                      1!164.3095           h57fd34a_2    conda-forge
x265                      3.5                  hbc6ce65_3    conda-forge
xz                        5.4.6                h80987f9_1  
yacs                      0.1.8                    pypi_0    pypi
yaml                      0.2.5                h1a28f6b_0  
zipp                      3.21.0           py39hca03da5_0  
zlib                      1.2.13               hfb2fe0b_6    conda-forge
zstd                      1.5.6                hfb09047_0 


my environment on the gpu cluster: 
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
absl-py                   2.1.0                    pypi_0    pypi
antlr4-python3-runtime    4.9.3                    pypi_0    pypi
black                     24.10.0                  pypi_0    pypi
blas                      1.0                         mkl  
brotli-python             1.0.9            py39h6a678d5_9  
bzip2                     1.0.8                h5eee18b_6  
c-ares                    1.19.1               h5eee18b_0  
ca-certificates           2024.12.31           h06a4308_0  
cairo                     1.16.0               hb05425b_5  
certifi                   2024.12.14       py39h06a4308_0  
charset-normalizer        3.3.2              pyhd3eb1b0_0  
click                     8.1.8                    pypi_0    pypi
cloudpickle               3.1.1                    pypi_0    pypi
contourpy                 1.3.0                    pypi_0    pypi
cuda-cudart               12.1.105                      0    nvidia
cuda-cupti                12.1.105                      0    nvidia
cuda-libraries            12.1.0                        0    nvidia
cuda-nvrtc                12.1.105                      0    nvidia
cuda-nvtx                 12.1.105                      0    nvidia
cuda-opencl               12.6.77                       0    nvidia
cuda-runtime              12.1.0                        0    nvidia
cuda-version              12.6                          3    nvidia
cycler                    0.12.1                   pypi_0    pypi
cyrus-sasl                2.1.28               h52b45da_1  
dbus                      1.13.18              hb2f20db_0  
detectron2                0.6                      pypi_0    pypi
eigen                     3.4.0                hdb19cb5_0  
expat                     2.6.4                h6a678d5_0  
ffmpeg                    4.2.2                h20bf706_0  
filelock                  3.13.1           py39h06a4308_0  
fontconfig                2.14.1               h55d465d_3  
fonttools                 4.55.3                   pypi_0    pypi
freetype                  2.12.1               h4a9f257_0  
fvcore                    0.1.5.post20221221          pypi_0    pypi
giflib                    5.2.2                h5eee18b_0  
glib                      2.78.4               h6a678d5_0  
glib-tools                2.78.4               h6a678d5_0  
gmp                       6.2.1                h295c915_3  
gmpy2                     2.1.2            py39heeb90bb_0  
gnutls                    3.6.15               he1e5248_0  
graphite2                 1.3.14               h295c915_1  
grpcio                    1.69.0                   pypi_0    pypi
gst-plugins-base          1.14.1               h6a678d5_1  
gstreamer                 1.14.1               h5eee18b_1  
harfbuzz                  4.3.0                hf52aaf7_2  
hdf5                      1.12.1               h2b7332f_3  
hydra-core                1.3.2                    pypi_0    pypi
icu                       73.1                 h6a678d5_0  
idna                      3.7              py39h06a4308_0  
importlib-metadata        8.5.0                    pypi_0    pypi
importlib-resources       6.5.2                    pypi_0    pypi
intel-openmp              2023.1.0         hdb19cb5_46306  
iopath                    0.1.9                    pypi_0    pypi
jinja2                    3.1.4            py39h06a4308_1  
jpeg                      9e                   h5eee18b_3  
kiwisolver                1.4.7                    pypi_0    pypi
krb5                      1.20.1               h143b758_1  
lame                      3.100                h7b6447c_0  
lcms2                     2.16                 hb9589c4_0  
ld_impl_linux-64          2.40                 h12ee557_0  
lerc                      4.0.0                h6a678d5_0  
libabseil                 20240116.2      cxx17_h6a678d5_0  
libclang                  14.0.6          default_hc6dbbc7_2  
libclang13                14.0.6          default_he11475f_2  
libcublas                 12.1.0.26                     0    nvidia
libcufft                  11.0.2.4                      0    nvidia
libcufile                 1.11.1.6                      0    nvidia
libcups                   2.4.2                h2d74bed_1  
libcurand                 10.3.7.77                     0    nvidia
libcurl                   8.11.1               hc9e6f67_0  
libcusolver               11.4.4.55                     0    nvidia
libcusparse               12.0.2.55                     0    nvidia
libdeflate                1.22                 h5eee18b_0  
libedit                   3.1.20230828         h5eee18b_0  
libev                     4.33                 h7f8727e_1  
libffi                    3.4.4                h6a678d5_1  
libgcc-ng                 11.2.0               h1234567_1  
libgfortran-ng            11.2.0               h00389a5_1  
libgfortran5              11.2.0               h1234567_1  
libglib                   2.78.4               hdc74915_0  
libgomp                   11.2.0               h1234567_1  
libiconv                  1.16                 h5eee18b_3  
libidn2                   2.3.4                h5eee18b_0  
libjpeg-turbo             2.0.0                h9bf148f_0    pytorch
libllvm14                 14.0.6               hecde1de_4  
libnghttp2                1.57.0               h2d74bed_0  
libnpp                    12.0.2.50                     0    nvidia
libnvjitlink              12.1.105                      0    nvidia
libnvjpeg                 12.1.1.14                     0    nvidia
libopus                   1.3.1                h5eee18b_1  
libpng                    1.6.39               h5eee18b_0  
libpq                     17.2                 hdbd6064_0  
libprotobuf               4.25.3               he621ea3_0  
libssh2                   1.11.1               h251f7ec_0  
libstdcxx-ng              11.2.0               h1234567_1  
libtasn1                  4.19.0               h5eee18b_0  
libtiff                   4.5.1                hffd6297_1  
libunistring              0.9.10               h27cfd23_0  
libuuid                   1.41.5               h5eee18b_0  
libvpx                    1.7.0                h439df22_0  
libwebp                   1.3.2                h11a3e52_0  
libwebp-base              1.3.2                h5eee18b_1  
libxcb                    1.15                 h7f8727e_0  
libxkbcommon              1.0.1                h097e994_2  
libxml2                   2.13.5               hfdd30dd_0  
llvm-openmp               14.0.6               h9e868ea_0  
lz4-c                     1.9.4                h6a678d5_1  
markdown                  3.7                      pypi_0    pypi
markupsafe                2.1.3            py39h5eee18b_1  
matplotlib                3.9.4                    pypi_0    pypi
mkl                       2023.1.0         h213fc3f_46344  
mkl-service               2.4.0            py39h5eee18b_2  
mkl_fft                   1.3.11           py39h5eee18b_0  
mkl_random                1.2.8            py39h1128e8f_0  
mpc                       1.1.0                h10f8cd9_1  
mpfr                      4.0.2                hb69a4c5_1  
mpmath                    1.3.0            py39h06a4308_0  
mypy-extensions           1.0.0                    pypi_0    pypi
mysql                     8.4.0                h29a9f33_1  
ncurses                   6.4                  h6a678d5_0  
nettle                    3.7.3                hbbd107a_1  
networkx                  3.2.1            py39h06a4308_0  
numpy                     1.26.4           py39h5f9d8c6_0  
numpy-base                1.26.4           py39hb5e798b_0  
omegaconf                 2.3.0                    pypi_0    pypi
opencv                    4.10.0           py39h0a8ef67_0  
openh264                  2.1.1                h4ff587b_0  
openjpeg                  2.5.2                he7f1fd0_0  
openldap                  2.6.4                h42fbc30_0  
openssl                   3.0.15               h5eee18b_0  
packaging                 24.2                     pypi_0    pypi
pathspec                  0.12.1                   pypi_0    pypi
pcre2                     10.42                hebb0a14_1  
pillow                    11.0.0           py39hcea889d_1  
pip                       24.2             py39h06a4308_0  
pixman                    0.40.0               h7f8727e_1  
platformdirs              4.3.6                    pypi_0    pypi
portalocker               3.1.1                    pypi_0    pypi
protobuf                  5.29.3                   pypi_0    pypi
pycocotools               2.0.8                    pypi_0    pypi
pyparsing                 3.2.1                    pypi_0    pypi
pysocks                   1.7.1            py39h06a4308_0  
python                    3.9.21               he870216_1  
python-dateutil           2.9.0.post0              pypi_0    pypi
pytorch                   2.5.1           py3.9_cuda12.1_cudnn9.1.0_0    pytorch
pytorch-cuda              12.1                 ha16c6d3_6    pytorch
pytorch-mutex             1.0                        cuda    pytorch
pyyaml                    6.0.2            py39h5eee18b_0  
qt-main                   5.15.2              hb6262e9_11  
readline                  8.2                  h5eee18b_0  
requests                  2.32.3           py39h06a4308_1  
setuptools                75.1.0           py39h06a4308_0  
six                       1.17.0                   pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0  
sympy                     1.13.3           py39h06a4308_0  
tabulate                  0.9.0                    pypi_0    pypi
tbb                       2021.8.0             hdb19cb5_0  
tensorboard               2.18.0                   pypi_0    pypi
tensorboard-data-server   0.7.2                    pypi_0    pypi
termcolor                 2.5.0                    pypi_0    pypi
tk                        8.6.14               h39e8969_0  
tomli                     2.2.1                    pypi_0    pypi
torchaudio                2.5.1                py39_cu121    pytorch
torchtriton               3.1.0                      py39    pytorch
torchvision               0.20.1               py39_cu121    pytorch
tqdm                      4.67.1                   pypi_0    pypi
typing_extensions         4.12.2           py39h06a4308_0  
tzdata                    2024b                h04d1e81_0  
urllib3                   2.3.0            py39h06a4308_0  
werkzeug                  3.1.3                    pypi_0    pypi
wheel                     0.44.0           py39h06a4308_0  
x264                      1!157.20191217       h7b6447c_0  
xz                        5.4.6                h5eee18b_1  
yacs                      0.1.8                    pypi_0    pypi
yaml                      0.2.5                h7b6447c_0  
zipp                      3.21.0                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_1  
zstd                      1.5.6                hc292b87_0 

If your issue looks like an installation issue / environment issue,
please first check common issues in https://detectron2.readthedocs.io/tutorials/install.html#common-installation-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant