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

NameError: name 'DRCT' is not defined #12

Open
OriLifschitz opened this issue Jun 6, 2024 · 2 comments
Open

NameError: name 'DRCT' is not defined #12

OriLifschitz opened this issue Jun 6, 2024 · 2 comments

Comments

@OriLifschitz
Copy link

Hello,
Under Windows 11 OS, and following the installation steps to the letter.
When trying to run inference.py with absolute or relative paths, I get this error:

line 27, in main
    model = DRCT(upscale=4, in_chans=3, img_size=64, window_size=16, compress_ratio=3, squeeze_factor=30,
NameError: name 'DRCT' is not defined

Any thoughts please?

@OriLifschitz
Copy link
Author

OriLifschitz commented Jun 6, 2024

Had to change line 27 to this:
model = drct.archs.DRCT_arch.DRCT(...)

Any idea what's the root cause please?

@ming053l
Copy link
Owner

ming053l commented Jun 7, 2024

hi, I uploaded the 'inference.py' in the repository, now you can try it again!

I have fixed up some bugs.

Now you can run it easily, this works on my environment.

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

No branches or pull requests

2 participants