You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 "D:\python\lib\site-packages\mmcv_init_.py", line 3, in
from .arraymisc import *
File "D:\python\lib\site-packages\mmcv\arraymisc_init_.py", line 2, in
from .quantization import dequantize, quantize
File "D:\python\lib\site-packages\mmcv\arraymisc\quantization.py", line 2, in
from typing import Union
File "E:\exploreMmagic\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) (E:\exploreMmagic\mmagic\mmagic\utils\typing.py)
Reproduces the problem - code sample
from mmagic.apis import MMagicInferencer
sd_inferencer = MMagicInferencer(model_name='stable_diffusion')
text_prompts = 'A panda is having dinner at KFC'
result_out_dir = './output/sd_res.png'
sd_inferencer.infer(text=text_prompts, result_out_dir=result_out_dir)
Reproduces the problem - command or script
from mmagic.apis import MMagicInferencer
sd_inferencer = MMagicInferencer(model_name='stable_diffusion')
text_prompts = 'A panda is having dinner at KFC'
result_out_dir = './output/sd_res.png'
sd_inferencer.infer(text=text_prompts, result_out_dir=result_out_dir)
Reproduces the problem - error message
prompt no error
Additional information
No response
The text was updated successfully, but these errors were encountered:
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
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 "D:\python\lib\site-packages\mmcv_init_.py", line 3, in
from .arraymisc import *
File "D:\python\lib\site-packages\mmcv\arraymisc_init_.py", line 2, in
from .quantization import dequantize, quantize
File "D:\python\lib\site-packages\mmcv\arraymisc\quantization.py", line 2, in
from typing import Union
File "E:\exploreMmagic\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) (E:\exploreMmagic\mmagic\mmagic\utils\typing.py)
Reproduces the problem - code sample
from mmagic.apis import MMagicInferencer
sd_inferencer = MMagicInferencer(model_name='stable_diffusion')
text_prompts = 'A panda is having dinner at KFC'
result_out_dir = './output/sd_res.png'
sd_inferencer.infer(text=text_prompts, result_out_dir=result_out_dir)
Reproduces the problem - command or script
from mmagic.apis import MMagicInferencer
sd_inferencer = MMagicInferencer(model_name='stable_diffusion')
text_prompts = 'A panda is having dinner at KFC'
result_out_dir = './output/sd_res.png'
sd_inferencer.infer(text=text_prompts, result_out_dir=result_out_dir)
Reproduces the problem - error message
prompt no error
Additional information
No response
The text was updated successfully, but these errors were encountered: