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

When I use the pytorch model, I meet an error. #19

Open
Drsea123 opened this issue Apr 11, 2019 · 1 comment
Open

When I use the pytorch model, I meet an error. #19

Drsea123 opened this issue Apr 11, 2019 · 1 comment

Comments

@Drsea123
Copy link

please! When I use the pytorch model, I meet an error.
I want to denoise an image using a one of the pretrained models

python test_ffdnet_ipol.py
--input input.png
--noise_sigma 25
--add_noise True

I have:

Testing FFDNet model

Parameters:
add_noise: True
input: 111.png
suffix:
noise_sigma: 0.09803921568627451
dont_save_results: False
no_gpu: False
cuda: True

rgb: False
im shape: (518, 774)
Loading model ...

Process finished with exit code 0
I have no use to get anything, but I have configured the libraries that need to be configured.
Then I debugged it and when I debugged this statement, the project exited.
if args['cuda']:
state_dict = torch.load(model_fn)
device_ids = [0]
model = nn.DataParallel(net, device_ids=device_ids).cuda()

I want to know why I can't use the training model?@cszn

@cszn
Copy link
Owner

cszn commented Dec 15, 2019

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