Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] fix import error in quick run demo doc #1640

Merged
merged 1 commit into from
Feb 13, 2023
Merged

[Fix] fix import error in quick run demo doc #1640

merged 1 commit into from
Feb 13, 2023

Conversation

Li-Qingyun
Copy link
Contributor

Error info:

❯ PYTHONPATH='.'$PYTHONPATH python quick_run.py
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/lqy/Desktop/mmediting/quick_run.py:3 in <module>                                           │
│                                                                                                  │
│    1 import mmcv                                                                                 │
│    2 from mmedit.apis import init_model, restoration_inference                                   │
│ ❱  3 from mmedit.engine.misc import tensor2img                                                   │
│    4                                                                                             │
│    5 config = 'configs/esrgan/esrgan_x4c64b23g32_1xb16-400k_div2k.py'                            │
│    6 checkpoint = 'https://download.openmmlab.com/mmediting/restorers/esrgan/esrgan_x4c64b23g    │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Copy link
Collaborator

@LeoXing1996 LeoXing1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Li-Qingyun, thanks for your contribution. This PR LGTM!

@LeoXing1996 LeoXing1996 merged commit e86796a into open-mmlab:dev-1.x Feb 13, 2023
@Li-Qingyun Li-Qingyun deleted the patch-2 branch February 13, 2023 07:31
@Li-Qingyun
Copy link
Contributor Author

@LeoXing1996 Thank you for your maintenance! The MMEdit is Great!

@FRILLIC
Copy link

FRILLIC commented May 5, 2023

Where is the restoration_inference? I cannot import name 'restoration_inference' from 'mmagic.apis'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants