An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\cflow\utils.py", line 11, in
from FrEIA.framework import SequenceINN
ModuleNotFoundError: No module named 'FrEIA'
(anomalib_annew) E:\anomalib_an\anomalib-main\anomalib-main>python tools/train.py
D:\Users\imhao\anaconda3\envs\anomalib_annew\lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
Traceback (most recent call last):
File "E:\anomalib_an\anomalib-main\anomalib-main\tools\train.py", line 3, in <module>
from anomalib.models import Patchcore
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\__init__.py", line 15, in <module>
from .image import (
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\__init__.py", line 7, in <module>
from .cflow import Cflow
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\cflow\__init__.py", line 6, in <module>
from .lightning_model import Cflow
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\cflow\lightning_model.py", line 27, in <module>
from .torch_model import CflowModel
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\cflow\torch_model.py", line 15, in <module>
from .utils import cflow_head, get_logp, positional_encoding_2d
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\cflow\utils.py", line 11, in <module>
from FrEIA.framework import SequenceINN
ModuleNotFoundError: No module named 'FrEIA'
Code of Conduct
[X] I agree to follow this project's Code of Conduct
I think you are using an older version of anomalib. The main branch does not have tools/train.py anymore. In either case, did you try pip install freia
Describe the bug
File "E:\anomalib_an\anomalib-main\anomalib-main\src\anomalib\models\image\cflow\utils.py", line 11, in
from FrEIA.framework import SequenceINN
ModuleNotFoundError: No module named 'FrEIA'
Dataset
Other (please specify in the text field below)
Model
Other (please specify in the field below)
Steps to reproduce the behavior
WHY
OS information
OS information:
Expected behavior
I hope train.py can run normally
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
main
Configuration YAML
Logs
Code of Conduct