The examples on the 'Quick run' introduction have to be run from the base of the git tree after installation. It would be better to use portable examples that test the installation tree.
Suggest a potential alternative/fix
This example does not rely on the existence of an 'output/' directory:
from mmagic.apis import MMagicInferencer
sd_inferencer = MMagicInferencer(model_name='stable_diffusion')
text_prompts = 'A panda is having dinner at KFC'
sd_inferencer.infer(text=text_prompts, result_out_dir='KFC_panda.png')
This example uses the previously created image and finds the config by name from the installation tree rather than digging the config source file out of the git tree:
Branch
main branch https://mmagic.readthedocs.io/en/latest/
📚 The doc issue
The examples on the 'Quick run' introduction have to be run from the base of the git tree after installation. It would be better to use portable examples that test the installation tree.
Suggest a potential alternative/fix
This example does not rely on the existence of an 'output/' directory:
This example uses the previously created image and finds the config by name from the installation tree rather than digging the config source file out of the git tree: