This probably causes problems with using anomaly alone by itself.
@samet-akcay
But it doesn't seem to be tested for this at all (there is no case about only installing the anomaly environment and testing for anomaly).
Currently, when I install an anomaly environment with tox, mmcv is installed.
Describe the bug
MMCV, a non-required installer library, is imported inside
otx.core.data.caching
. (MMCV is currently an optional requirement.) https://github.com/openvinotoolkit/training_extensions/blob/develop/otx/core/data/caching/__init__.pyCurrently, importing
from otx.core.data.adapter.base_dataset_adapter import BaseDatasetAdapter
alone imports mmcv.We'll need to move the location of the three classes above. It looks like this should be moved to
otx/algorithms/common/adapters/mmcv/hooks
. and https://github.com/openvinotoolkit/training_extensions/blob/4492e510a22a47c4f92b8108888fa28654a6216b/otx/core/data/caching/mem_cache_handler.py#L181 should be modified or relocated accordingly.This probably causes problems with using anomaly alone by itself. @samet-akcay
Steps to Reproduce
Environment: