['AsymmetricAutoencoderKL is already registered in model at mmagic.models.archs'] #2133
Open
3 tasks done
Labels
kind/bug
something isn't working
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmagic
Environment
when i try "python mmagic/utils/collect_env.py",
I have the following issue :
(mmagic) INPIXALDOM\legoffp@INPIXALSTA69:~/Documents/Stage_Pierre/StageP/mmagic> python mmagic/utils/collect_env.py
Traceback (most recent call last):
File "mmagic/utils/collect_env.py", line 2, in
from mmcv.utils import collect_env as collect_base_env
File "/home/INPIXALDOM/legoffp/anaconda3/envs/mmagic/lib/python3.8/site-packages/mmcv/init.py", line 3, in
from .arraymisc import *
File "/home/INPIXALDOM/legoffp/anaconda3/envs/mmagic/lib/python3.8/site-packages/mmcv/arraymisc/init.py", line 2, in
from .quantization import dequantize, quantize
File "/home/INPIXALDOM/legoffp/anaconda3/envs/mmagic/lib/python3.8/site-packages/mmcv/arraymisc/quantization.py", line 2, in
from typing import Union
File "/home/INPIXALDOM/legoffp/Documents/Stage_Pierre/StageP/mmagic/mmagic/utils/typing.py", line 2, in
from typing import Callable, Dict, List, Sequence, Tuple, Union
ImportError: cannot import name 'Callable' from partially initialized module 'typing' (most likely due to a circular import) (/home/INPIXALDOM/legoffp/Documents/Stage_Pierre/StageP/mmagic/mmagic/utils/typing.py)
Reproduces the problem - code sample
from mmagic.apis import MMagicInferencer
Create a MMagicInferencer instance
editor = MMagicInferencer('pix2pix')
Infer a image. Input image path and output image path is needed.
results = editor.infer(img='../resources/input/translation/gt_mask_0.png', result_out_dir='../resources/output/translation/tutorial_translation_pix2pix_res.jpg')
Reproduces the problem - command or script
Inside the cell 15 from mmagic_inference_tutorial.ipynb
from mmagic.apis import MMagicInferencer
Create a MMagicInferencer instance
editor = MMagicInferencer('pix2pix')
Infer a image. Input image path and output image path is needed.
results = editor.infer(img='../resources/input/translation/gt_mask_0.png', result_out_dir='../resources/output/translation/tutorial_translation_pix2pix_res.jpg')
Reproduces the problem - error message
Additional information
Here is my major headache when i run the cell 15 from demo/mmagic_inference_tutorial.ipynb
Have anyone meet this problem ? If yes, what was your solution ?
I'm under Linux with conda envirronnement
The text was updated successfully, but these errors were encountered: