open-mmlab / mmagic

OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo, diffusion models, for text-to-image generation, image/video restoration/enhancement, etc.
https://mmagic.readthedocs.io/en/latest/
Apache License 2.0
6.95k stars 1.06k forks source link

[Feature] how to use gradio_inpainting.py? #1958

Open xddun opened 1 year ago

xddun commented 1 year ago

What's the feature?

I fail to use python demo/gradio_inpainting.py , I couldn't find a tutorial on how to use this. thx~

$ python demo/gradio_inpainting.py ==model_name aot_gan ==meta_file_dir /ssd/xiedong/workplace/mmagic Editable project location: /ssd/xiedong/workplace/mmagic Requires: av, click, controlnet_aux, diffusers, einops, face-alignment, facexlib, lmdb, lpips, mediapipe, numpy, opencv-python, pandas, Pillow, resize_right, tensorboard, transformers Required-by: //configs/aot_gan/metafile.yml Traceback (most recent call last): File "demo/gradio_inpainting.py", line 324, in inpaintingGradio = InpaintingGradio() File "demo/gradio_inpainting.py", line 47, in init InpaintingGradio.init_inference_supported_models_cfg() File "demo/gradio_inpainting.py", line 160, in init_inference_supported_models_cfg with open(meta_file_dir, 'r') as stream: FileNotFoundError: [Errno 2] No such file or directory: '/ssd/xiedong/workplace/mmagic\nEditable project location: /ssd/xiedong/workplace/mmagic\nRequires: av, click, controlnet_aux, diffusers, einops, face-alignment, facexlib, lmdb, lpips, mediapipe, numpy, opencv-python, pandas, Pillow, resize_right, tensorboard, transformers\nRequired-by: \n//configs/aot_gan/metafile.yml'

Any other context?

No response

xddun commented 1 year ago

Does anyone know how to execute this interactive program ?

Fearblade66 commented 11 months ago

Id like to know as well...