mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 05:44:38 +00:00
NameError: name 'fused_act_ext' is not defined #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jerrymatjila on GitHub (Jun 20, 2021).
Attempt for quick inference is throwing NameError: name 'fused_act_ext' is not defined.
I'll highly appreciate your assistance. Below are the details of the error and conda packages.
Your assistance can also come in a form of simply sharing your list installed packages.
@woctezuma commented on GitHub (Jun 20, 2021):
This is used by BasicSR: https://github.com/xinntao/BasicSR/search?q=fused_act_ext
See the comment at https://github.com/TencentARC/GFPGAN#installation
@jerrymatjila commented on GitHub (Jun 20, 2021):
I followed your instructions
and still get the same error.
Which version of basicsr is on your working environment?
@ylepaih commented on GitHub (Jun 21, 2021):
I solved this issue using : export BASICSR_JIT='True'
maybe this command could work (not tested)
BASICSR_EXT=True BASICSR_JIT=True pip install basicsr
@reason4 commented on GitHub (Jun 21, 2021):
I get the same error. Have you solved it ?
@reason4 commented on GitHub (Jun 22, 2021):
Using "export BASICSR_JIT='True'" solved my problem, Thanks!
@xinntao commented on GitHub (Jun 23, 2021):
@jerrymatjila
Maybe there are some errors in compiling the cuda operators.
You may try
BASICSR_EXT=True pip install basicsrto see the error log.OR
You can use
export BASICSR_JIT=Trueduring inference, which will compile the operator each time when you are running the program.@jerrymatjila commented on GitHub (Jun 23, 2021):
BASICSR_JIT=Trueshows compilation errorsI'll ask the people at https://github.com/xinntao/BasicSR for further advice.
If you don't mind can you share your exported conda environment
conda env export?@jerrymatjila commented on GitHub (Jun 23, 2021):
After asking for help from BasicSR, a solution was found.
In my case, quick inference works by using
BASICSR_JIT=True.Thanks for your assistance and this wonderful project.
@xinntao commented on GitHub (Jun 23, 2021):
@jerrymatjila
Thanks!
@Hbroda commented on GitHub (Jul 10, 2021):
Hi, I'm new to all of this. I wanted to know how to solve the problem "BASICSR_EXT" is not recognized as an internal or external command". I'm stuck in that and I don't know what I need to do. Thanks!
@woctezuma commented on GitHub (Jul 10, 2021):
This is an environment variable used by the
BasicSRpackage.f2d3510bf7/setup.py (L117)@Hbroda commented on GitHub (Jul 10, 2021):
I know, but I can't get it to work. I have everything installed, I don't know what else I need to do :(.
Is there a step that I did not do?
@Harighs commented on GitHub (Jul 23, 2021):
I get the same error, should but if i run
export BASICSR_JIT='True'
nothing happens in ubuntu terminal
what should i enter in the terminal or i should change in some python script?
@xypu98 commented on GitHub (Aug 19, 2021):
I solve the problem "NameError: name 'deform_conv_ext' is not defined" by:
export BASICSR_JIT='True'
and then input test command in one GPU :
python basicsr/test.py -opt options/test/EDVR/test_EDVR_M_x4_SR_REDS.yml
@HangAround47 commented on GitHub (Sep 3, 2021):
Does win10 fail to solve this error?
@chenglih commented on GitHub (Apr 28, 2023):
i am a rookie,where can i use the method in pycharm
@LikaiLiu-lh commented on GitHub (May 15, 2023):
I run the script like this in terminal : sh run.sh export ...
in this way sovle the problem
@Michael-shz commented on GitHub (Jun 15, 2023):
use "BASICSR_EXT=True pip install basicsr" solved problem, thank u~
@YuzheZhang-1999 commented on GitHub (Sep 25, 2023):
same problem!
how do you solve it then?
@YuzheZhang-1999 commented on GitHub (Sep 25, 2023):
I met the same problem, did you solve it?
@yayinliqing commented on GitHub (Oct 16, 2023):
你解决了吗
@Manish-Das123 commented on GitHub (Jan 22, 2025):
i have the same problem module not found : fused_act_ext not defined. Can any one please tell be what will be the next steps to do ?