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

RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM #62

Open
RaySunWHUT opened this issue Jun 1, 2021 · 2 comments
Open

RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM #62

RaySunWHUT opened this issue Jun 1, 2021 · 2 comments

Comments

@RaySunWHUT
Copy link

hi, Mr. sefibk,

Thanks for your work, and if I use the "Blind data generator" to generate degradation images, the kernelGAN can estimate the correct kernel. But if the use a self-created disk kernel, and I run the code this a low-resolution image that downscales with the disk SR kernel. The code will occur error like this:
YVVXIUFDSZ4SJ 73}0B2G(K

the disk kernel I used can be visualized like this:
image

and the kernel details is this:

def get_k():
    kk = [
        [0, 0, 0, 0, 0.0013339157770654528, 0.0036148217219170906, 0.0043595041514488267, 0.0036148217219170906,
         0.0013339157770654528, 0, 0, 0, 0],
        [0, 0, 0.00080003827014298045, 0.006060450060893929, 0.0088215133735283831, 0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088215133735283831, 0.006060450060893929,
         0.00080003827014298045,
         0, 0],
        [0, 0.00080003827014298045, 0.0076458238973070832, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0076458238973070832, 0.00080003827014298045, 0],
        [0, 0.006060450060893929, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.006060450060893929, 0],
        [0.0013339157770654528, 0.0088215133735283831, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088215133735283831, 0.0013339157770654528],
        [0.0036148217219170906, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0036148217219170906],
        [0.0043595041514488267, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0043595041514488267],
        [0.0036148217219170906, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0036148217219170906],
        [0.0013339157770654528, 0.0088215133735283831, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.0088215133735283831, 0.0013339157770654528],
        [0, 0.006060450060893929, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0088419412828830753, 0.006060450060893929, 0],
        [0, 0.00080003827014298045, 0.0076458238973070832, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753, 0.0088419412828830753,
         0.0088419412828830753,
         0.0076458238973070832, 0.00080003827014298045, 0],
        [0, 0, 0.00080003827014298045, 0.006060450060893929, 0.0088215133735283831, 0.0088419412828830753,
         0.0088419412828830753, 0.0088419412828830753, 0.0088215133735283831, 0.006060450060893929,
         0.00080003827014298045,
         0, 0],
        [0, 0, 0, 0, 0.0013339157770654528, 0.0036148217219170906, 0.0043595041514488267, 0.0036148217219170906,
         0.0013339157770654528, 0, 0, 0, 0],
    ]
    return np.array(kk)
@RaySunWHUT
Copy link
Author

and by the way, if you can solve the last issue I mentioned, I will be very grateful!

@sefibk
Copy link
Owner

sefibk commented Jun 1, 2021

I think it is related to the CUDNN issue.
I can't think of a reason why the type of kernel should affect the run.
In fact - the algorithm is unaware of the kernel itself...

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