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

Question about using basicsr #17

Open
junyizeng opened this issue Sep 17, 2023 · 2 comments
Open

Question about using basicsr #17

junyizeng opened this issue Sep 17, 2023 · 2 comments

Comments

@junyizeng
Copy link

Thank you very much for your open-source contributions. I have successfully set up the Anaconda virtual environment as per the instructions in your README. However, I encountered an issue when trying to use BasicSR in inference_gcfsr_blind.py, and the error message is as follows:

Testing 0 XMY-176
Traceback (most recent call last):
File "/media/cqnu/data/zjy/GCFSR-main/inference/inference_gcfsr_blind.py", line 70, in
main()
File "/media/cqnu/data/zjy/GCFSR-main/inference/inference_gcfsr_blind.py", line 67, in main
generate(args, img, model, device, imgname)
File "/media/cqnu/data/zjy/GCFSR-main/inference/inference_gcfsr_blind.py", line 20, in generate
output, _ = g_ema(img)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/basicsr/archs/gcfsr_arch.py", line 1089, in forward
feat = self.conv_body_first(x)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/torch/nn/modules/container.py", line 141, in forward
input = module(input)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/basicsr/ops/fused_act/fused_act.py", line 90, in forward
return fused_leaky_relu(input, self.bias, self.negative_slope, self.scale)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/basicsr/ops/fused_act/fused_act.py", line 94, in fused_leaky_relu
return FusedLeakyReLUFunction.apply(input, bias, negative_slope, scale)
File "/home/cqnu/anaconda3/envs/human-resolu/lib/python3.7/site-packages/basicsr/ops/fused_act/fused_act.py", line 64, in forward
out = fused_act_ext.fused_bias_act(input, bias, empty, 3, 0, negative_slope, scale)
NameError: name 'fused_act_ext' is not defined

Could you please advise on how to address this issue? I look forward to your response.

@wzylove
Copy link

wzylove commented Dec 18, 2023

I have also encountered this problem. Is there something missing

@JHLGXFF
Copy link

JHLGXFF commented Mar 3, 2024

TencentARC/GFPGAN#5 try this way

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

3 participants