Open ozangungor12 opened 6 months ago
I also realized that the problem does not happen when I first run the mmocr
and then the mmdet
modules.
Also, there's a warning message displayed after I run the script above.
05/02 15:18:59 - mmengine - WARNING - Failed to search registry with scope "mmocr" in the "function" registry tree. As a workaround, the current "function" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmocr" is a correct scope, or whether the registry is initialized.
Prerequisite
Task
I have modified the scripts/configs, or I'm working on my own tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmocr
Environment
sys.platform: linux Python: 3.11.7 (main, Dec 8 2023, 18:56:58) [GCC 11.4.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0,1,2: NVIDIA RTX A6000 CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.8, V11.8.89 GCC: x86_64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 PyTorch: 2.1.2+cu118 PyTorch compiling details: PyTorch built with:
TorchVision: 0.16.2+cu118 OpenCV: 4.8.0 MMEngine: 0.10.2 MMOCR: 1.0.1+2caab0a
mmcv 2.1.0 mmdet 3.3.0 mmengine 0.10.2 mmocr 1.0.1
Reproduces the problem - code sample
Reproduces the problem - command or script
Reproduces the problem - error message
Additional information
My application consists of two steps, detecting an object with
Panoptic Segmentation
and applyingOCR
on the detected region.When I try to use
mmdet
withmmocr
, I get the error above. If I only usemmdet
ormmocr
, I don't have the error anymore. So if I only run thePanoptic Segmentation
or if I runOCR
on the full image without the detection step, I don't have any errors. But when I try to run them both in my script, I get the following error. Here are the versions I have in my docker image.mmcv 2.1.0 mmdet 3.3.0 mmengine 0.10.2 mmocr 1.0.1