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 'model_fn' is not defined #3

Open
ShravanKumarChiluka opened this issue Dec 30, 2023 · 1 comment
Open

NameError: name 'model_fn' is not defined #3

ShravanKumarChiluka opened this issue Dec 30, 2023 · 1 comment

Comments

@ShravanKumarChiluka
Copy link

ShravanKumarChiluka commented Dec 30, 2023

Hello,
As per the instructions mentioned in the README.md document I tried to execute the project
When I try to execute the file named "demo_grayscale.py" and demo_real.py I'm getting the following error
NameError: name 'model_fn' is not defined for both the files.
The function "model_fn" is not defined and please help me to resolve this error as this will be a big help to proceed regarding my project.

Thanks.
Following is the screenshot of the error which I encountered.
Error

@sanghviyashiitb
Copy link
Owner

Hi,

Apologies for the bug, I had not tested the code to run on a CPU. I think the code should run by commenting lines 90-93. The model weights are loaded into the network anyway.

However, I really advise you against running the code without a GPU since it would require a lot of time to just run a single deconvolution result.

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