NameError: name 'fused_act_ext' is not defined #6

Closed
opened 2026-01-29 21:35:52 +00:00 by claunia · 22 comments
Owner

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.

$ python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
Processing 00.jpg ...
Traceback (most recent call last):
File "/deepmind/github/tencentarc/gfpgan/inference_gfpgan_full.py", line 120, in <module>
restoration(
File "/deepmind/github/tencentarc/gfpgan/inference_gfpgan_full.py", line 49, in restoration
output = gfpgan(cropped_face_t, return_rgb=False)[0]
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/deepmind/github/tencentarc/gfpgan/archs/gfpganv1_arch.py", line 348, in forward
feat = self.conv_body_first(x)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/fused_act/fused_act.py", line 85, in forward
return fused_leaky_relu(input, self.bias, self.negative_slope, self.scale)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/fused_act/fused_act.py", line 89, in fused_leaky_relu
return FusedLeakyReLUFunction.apply(input, bias, negative_slope, scale)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/fused_act/fused_act.py", line 59, 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
$ conda list
# packages in environment at /storage/usr/conda/envs/gfpgan:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      1_llvm    conda-forge
_pytorch_select           0.1                       cpu_0    anaconda
absl-py                   0.13.0             pyhd8ed1ab_0    conda-forge
addict                    2.4.0            py39hf3d152e_0    conda-forge
aiohttp                   3.7.4.post0      py39h3811e60_0    conda-forge
alsa-lib                  1.2.3                h516909a_0    conda-forge
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
async-timeout             3.0.1                   py_1000    conda-forge
attrs                     21.2.0             pyhd8ed1ab_0    conda-forge
basicsr                   1.3.3.4                  pypi_0    pypi
blas                      1.0                         mkl    anaconda
blinker                   1.4                        py_1    conda-forge
blosc                     1.21.0               h9c3ff4c_0    conda-forge
brotli                    1.0.9                h9c3ff4c_4    conda-forge
brotlipy                  0.7.0           py39h3811e60_1001    conda-forge
brunsli                   0.1                  h9c3ff4c_0    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.17.1               h7f98852_1    conda-forge
ca-certificates           2021.5.30            ha878542_0    conda-forge
cachetools                4.2.2              pyhd8ed1ab_0    conda-forge
cairo                     1.16.0            h6cf1ce9_1008    conda-forge
certifi                   2021.5.30        py39hf3d152e_0    conda-forge
cffi                      1.14.5           py39he32792d_0    conda-forge
cfitsio                   3.470                hb418390_7    conda-forge
chardet                   4.0.0            py39hf3d152e_1    conda-forge
charls                    2.2.0                h9c3ff4c_0    conda-forge
click                     8.0.1            py39hf3d152e_0    conda-forge
cloudpickle               1.6.0                      py_0    conda-forge
cryptography              3.4.7            py39hbca0aa6_0    conda-forge
cudatoolkit               10.2.89              h8f6ccaa_8    conda-forge
cycler                    0.10.0                     py_2    conda-forge
cytoolz                   0.11.0           py39h3811e60_3    conda-forge
dask-core                 2021.6.1           pyhd8ed1ab_0    conda-forge
dataclasses               0.8                pyhc8e2a94_1    conda-forge
dbus                      1.13.18              hb2f20db_0    anaconda
decorator                 5.0.9              pyhd8ed1ab_0    conda-forge
expat                     2.4.1                h9c3ff4c_0    conda-forge
facexlib                  0.1.3                    pypi_0    pypi
ffmpeg                    4.3.1                hca11adc_2    conda-forge
fontconfig                2.13.1            hba837de_1005    conda-forge
freetype                  2.10.4               h0708190_1    conda-forge
fsspec                    2021.6.0           pyhd8ed1ab_0    conda-forge
future                    0.18.2           py39hf3d152e_3    conda-forge
gettext                   0.21.0               hf68c758_0  
giflib                    5.2.1                h36c2ea0_2    conda-forge
glib                      2.68.3               h9c3ff4c_0    conda-forge
glib-tools                2.68.3               h9c3ff4c_0    conda-forge
gmp                       6.2.1                h58526e2_0    conda-forge
gnutls                    3.6.15               he1e5248_0  
google-auth               1.31.0             pyhd3eb1b0_0  
google-auth-oauthlib      0.4.1                      py_2    conda-forge
graphite2                 1.3.14               h23475e2_0    anaconda
grpcio                    1.38.0           py39hff7568b_0    conda-forge
gst-plugins-base          1.18.4               hf529b03_2    conda-forge
gstreamer                 1.18.4               h76c114f_2    conda-forge
harfbuzz                  2.8.1                h83ec7ef_0    conda-forge
hdf5                      1.10.6          nompi_h6a2412b_1114    conda-forge
icu                       68.1                 h58526e2_0    conda-forge
idna                      2.10               pyh9f0ad1d_0    conda-forge
imagecodecs               2021.6.8         py39h44211f0_0    conda-forge
imageio                   2.9.0                      py_0    conda-forge
importlib-metadata        4.5.0            py39hf3d152e_0    conda-forge
jasper                    1.900.1           h07fcdf6_1006    conda-forge
jbig                      2.1               h7f98852_2003    conda-forge
jpeg                      9d                   h36c2ea0_0    conda-forge
jxrlib                    1.1                  h7f98852_2    conda-forge
kiwisolver                1.3.1            py39h1a9c180_1    conda-forge
krb5                      1.19.1               hcc1bbae_0    conda-forge
lame                      3.100             h7f98852_1001    conda-forge
lcms2                     2.12                 hddcbb42_0    conda-forge
ld_impl_linux-64          2.35.1               hea4e1c9_2    conda-forge
lerc                      2.2.1                h9c3ff4c_0    conda-forge
libaec                    1.0.5                h9c3ff4c_0    conda-forge
libblas                   3.9.0                     8_mkl    conda-forge
libcblas                  3.9.0                     8_mkl    conda-forge
libclang                  11.1.0          default_ha53f305_1    conda-forge
libcurl                   7.77.0               h2574ce0_0    conda-forge
libdeflate                1.7                  h7f98852_5    conda-forge
libedit                   3.1.20210216         h27cfd23_1  
libev                     4.33                 h516909a_1    conda-forge
libevent                  2.1.10               hcdb4288_3    conda-forge
libffi                    3.3                  h58526e2_2    conda-forge
libgcc-ng                 9.3.0               h2828fa1_19    conda-forge
libgfortran-ng            9.3.0               hff62375_19    conda-forge
libgfortran5              9.3.0               hff62375_19    conda-forge
libglib                   2.68.3               h3e27bee_0    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libidn2                   2.3.1                h7f98852_0    conda-forge
liblapack                 3.9.0                     8_mkl    conda-forge
liblapacke                3.9.0                     8_mkl    conda-forge
libllvm11                 11.1.0               hf817b99_2    conda-forge
libnghttp2                1.43.0               h812cca2_0    conda-forge
libogg                    1.3.5                h27cfd23_1  
libopencv                 4.5.2            py39h2406f9b_0    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libpq                     13.3                 hd57d9b9_0    conda-forge
libprotobuf               3.15.8               h780b84a_0    conda-forge
libssh2                   1.9.0                ha56f1ee_6    conda-forge
libstdcxx-ng              9.3.0               h6de172a_19    conda-forge
libtasn1                  4.16.0               h27cfd23_0  
libtiff                   4.3.0                hf544144_1    conda-forge
libunistring              0.9.10               h14c3975_0    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libuv                     1.41.0               h7f98852_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libwebp-base              1.2.0                h7f98852_2    conda-forge
libxcb                    1.14                 h7b6447c_0    anaconda
libxkbcommon              1.0.3                he3ba5ed_0    conda-forge
libxml2                   2.9.12               h72842e0_0    conda-forge
libzopfli                 1.0.3                h9c3ff4c_0    conda-forge
llvm-openmp               11.1.0               h4bd325d_1    conda-forge
lmdb                      1.2.1                    pypi_0    pypi
locket                    0.2.1            py39h06a4308_1  
lz4-c                     1.9.3                h9c3ff4c_0    conda-forge
markdown                  3.3.4              pyhd8ed1ab_0    conda-forge
matplotlib-base           3.4.2            py39h2fa2bec_0    conda-forge
mkl                       2020.4             h726a3e6_304    conda-forge
multidict                 5.1.0            py39h3811e60_1    conda-forge
mysql-common              8.0.25               ha770c72_2    conda-forge
mysql-libs                8.0.25               hfa10184_2    conda-forge
ncurses                   6.2                  h58526e2_4    conda-forge
nettle                    3.7.3                hbbd107a_1  
networkx                  2.5                        py_0    anaconda
ninja                     1.10.2               h4bd325d_0    conda-forge
nspr                      4.30                 h9c3ff4c_0    conda-forge
nss                       3.67                 hb5efdd6_0    conda-forge
numpy                     1.20.3           py39hdbf815f_1    conda-forge
oauthlib                  3.1.1              pyhd8ed1ab_0    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
opencv                    4.5.2            py39hf3d152e_0    conda-forge
opencv-python             4.5.2.54                 pypi_0    pypi
openh264                  2.1.1                h780b84a_0    conda-forge
openjpeg                  2.4.0                hb52868f_1    conda-forge
openssl                   1.1.1k               h7f98852_0    conda-forge
packaging                 20.9               pyh44b312d_0    conda-forge
partd                     1.2.0              pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pillow                    8.2.0            py39hf95b381_1    conda-forge
pip                       21.1.2             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               h36c2ea0_0    conda-forge
pooch                     1.4.0              pyhd8ed1ab_0    conda-forge
protobuf                  3.15.8           py39he80948d_0    conda-forge
py-opencv                 4.5.2            py39hef51801_0    conda-forge
pyasn1                    0.4.8                      py_0    conda-forge
pyasn1-modules            0.2.8                      py_0    anaconda
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pyjwt                     2.1.0              pyhd8ed1ab_0    conda-forge
pyopenssl                 20.0.1             pyhd8ed1ab_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pysocks                   1.7.1            py39hf3d152e_3    conda-forge
python                    3.9.5           h49503c6_0_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.9                      1_cp39    conda-forge
pytorch                   1.7.1           py3.9_cuda10.2.89_cudnn7.6.5_0    pytorch
pywavelets                1.1.1            py39hce5d2b2_3    conda-forge
pyyaml                    5.4.1            py39h3811e60_0    conda-forge
qt                        5.12.9               hda022c4_4    conda-forge
readline                  8.1                  h46c0cb4_0    conda-forge
requests                  2.25.1             pyhd3deb0d_0    conda-forge
requests-oauthlib         1.3.0              pyh9f0ad1d_0    conda-forge
rsa                       4.7.2              pyh44b312d_0    conda-forge
scikit-image              0.18.1           py39hde0f152_0    conda-forge
scipy                     1.6.3            py39hee8e79c_0    conda-forge
setuptools                52.0.0           py39h06a4308_0  
six                       1.16.0             pyh6c4a22f_0    conda-forge
sleef                     3.5.1                h7f98852_1    conda-forge
snappy                    1.1.8                he1b5a44_3    conda-forge
sqlite                    3.35.5               h74cdb3f_0    conda-forge
tb-nightly                2.6.0a20210615           pypi_0    pypi
tensorboard               2.5.0              pyhd8ed1ab_0    conda-forge
tensorboard-data-server   0.6.0            py39h3da14fd_0    conda-forge
tensorboard-plugin-wit    1.8.0              pyh44b312d_0    conda-forge
tifffile                  2021.6.14          pyhd8ed1ab_0    conda-forge
tk                        8.6.10               h21135ba_1    conda-forge
toolz                     0.11.1                     py_0    conda-forge
torchvision               0.8.2           cpu_py39ha229d99_0  
tornado                   6.1              py39h3811e60_1    conda-forge
tqdm                      4.61.1             pyhd8ed1ab_0    conda-forge
typing-extensions         3.10.0.0             hd8ed1ab_0    conda-forge
typing_extensions         3.10.0.0           pyha770c72_0    conda-forge
tzdata                    2021a                he74cb21_0    conda-forge
urllib3                   1.26.5             pyhd8ed1ab_0    conda-forge
werkzeug                  2.0.1              pyhd8ed1ab_0    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
x264                      1!161.3030           h7f98852_1    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.0.10               h7f98852_0    conda-forge
xorg-libsm                1.2.3             hd9c2040_1000    conda-forge
xorg-libx11               1.7.2                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h7f98852_1    conda-forge
xorg-libxrender           0.9.10            h7f98852_1003    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h7f98852_1002    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
yaml                      0.2.5                h516909a_0    conda-forge
yapf                      0.31.0             pyhd8ed1ab_0    conda-forge
yarl                      1.6.3            py39h3811e60_1    conda-forge
zfp                       0.5.5                h9c3ff4c_5    conda-forge
zipp                      3.4.1              pyhd8ed1ab_0    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge
zstd                      1.5.0                ha95c52a_0    conda-forge
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. ```bash $ python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs Processing 00.jpg ... Traceback (most recent call last): File "/deepmind/github/tencentarc/gfpgan/inference_gfpgan_full.py", line 120, in <module> restoration( File "/deepmind/github/tencentarc/gfpgan/inference_gfpgan_full.py", line 49, in restoration output = gfpgan(cropped_face_t, return_rgb=False)[0] File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "/deepmind/github/tencentarc/gfpgan/archs/gfpganv1_arch.py", line 348, in forward feat = self.conv_body_first(x) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/container.py", line 117, in forward input = module(input) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/fused_act/fused_act.py", line 85, in forward return fused_leaky_relu(input, self.bias, self.negative_slope, self.scale) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/fused_act/fused_act.py", line 89, in fused_leaky_relu return FusedLeakyReLUFunction.apply(input, bias, negative_slope, scale) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/fused_act/fused_act.py", line 59, 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 ``` ```bash $ conda list # packages in environment at /storage/usr/conda/envs/gfpgan: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_llvm conda-forge _pytorch_select 0.1 cpu_0 anaconda absl-py 0.13.0 pyhd8ed1ab_0 conda-forge addict 2.4.0 py39hf3d152e_0 conda-forge aiohttp 3.7.4.post0 py39h3811e60_0 conda-forge alsa-lib 1.2.3 h516909a_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge async-timeout 3.0.1 py_1000 conda-forge attrs 21.2.0 pyhd8ed1ab_0 conda-forge basicsr 1.3.3.4 pypi_0 pypi blas 1.0 mkl anaconda blinker 1.4 py_1 conda-forge blosc 1.21.0 h9c3ff4c_0 conda-forge brotli 1.0.9 h9c3ff4c_4 conda-forge brotlipy 0.7.0 py39h3811e60_1001 conda-forge brunsli 0.1 h9c3ff4c_0 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.17.1 h7f98852_1 conda-forge ca-certificates 2021.5.30 ha878542_0 conda-forge cachetools 4.2.2 pyhd8ed1ab_0 conda-forge cairo 1.16.0 h6cf1ce9_1008 conda-forge certifi 2021.5.30 py39hf3d152e_0 conda-forge cffi 1.14.5 py39he32792d_0 conda-forge cfitsio 3.470 hb418390_7 conda-forge chardet 4.0.0 py39hf3d152e_1 conda-forge charls 2.2.0 h9c3ff4c_0 conda-forge click 8.0.1 py39hf3d152e_0 conda-forge cloudpickle 1.6.0 py_0 conda-forge cryptography 3.4.7 py39hbca0aa6_0 conda-forge cudatoolkit 10.2.89 h8f6ccaa_8 conda-forge cycler 0.10.0 py_2 conda-forge cytoolz 0.11.0 py39h3811e60_3 conda-forge dask-core 2021.6.1 pyhd8ed1ab_0 conda-forge dataclasses 0.8 pyhc8e2a94_1 conda-forge dbus 1.13.18 hb2f20db_0 anaconda decorator 5.0.9 pyhd8ed1ab_0 conda-forge expat 2.4.1 h9c3ff4c_0 conda-forge facexlib 0.1.3 pypi_0 pypi ffmpeg 4.3.1 hca11adc_2 conda-forge fontconfig 2.13.1 hba837de_1005 conda-forge freetype 2.10.4 h0708190_1 conda-forge fsspec 2021.6.0 pyhd8ed1ab_0 conda-forge future 0.18.2 py39hf3d152e_3 conda-forge gettext 0.21.0 hf68c758_0 giflib 5.2.1 h36c2ea0_2 conda-forge glib 2.68.3 h9c3ff4c_0 conda-forge glib-tools 2.68.3 h9c3ff4c_0 conda-forge gmp 6.2.1 h58526e2_0 conda-forge gnutls 3.6.15 he1e5248_0 google-auth 1.31.0 pyhd3eb1b0_0 google-auth-oauthlib 0.4.1 py_2 conda-forge graphite2 1.3.14 h23475e2_0 anaconda grpcio 1.38.0 py39hff7568b_0 conda-forge gst-plugins-base 1.18.4 hf529b03_2 conda-forge gstreamer 1.18.4 h76c114f_2 conda-forge harfbuzz 2.8.1 h83ec7ef_0 conda-forge hdf5 1.10.6 nompi_h6a2412b_1114 conda-forge icu 68.1 h58526e2_0 conda-forge idna 2.10 pyh9f0ad1d_0 conda-forge imagecodecs 2021.6.8 py39h44211f0_0 conda-forge imageio 2.9.0 py_0 conda-forge importlib-metadata 4.5.0 py39hf3d152e_0 conda-forge jasper 1.900.1 h07fcdf6_1006 conda-forge jbig 2.1 h7f98852_2003 conda-forge jpeg 9d h36c2ea0_0 conda-forge jxrlib 1.1 h7f98852_2 conda-forge kiwisolver 1.3.1 py39h1a9c180_1 conda-forge krb5 1.19.1 hcc1bbae_0 conda-forge lame 3.100 h7f98852_1001 conda-forge lcms2 2.12 hddcbb42_0 conda-forge ld_impl_linux-64 2.35.1 hea4e1c9_2 conda-forge lerc 2.2.1 h9c3ff4c_0 conda-forge libaec 1.0.5 h9c3ff4c_0 conda-forge libblas 3.9.0 8_mkl conda-forge libcblas 3.9.0 8_mkl conda-forge libclang 11.1.0 default_ha53f305_1 conda-forge libcurl 7.77.0 h2574ce0_0 conda-forge libdeflate 1.7 h7f98852_5 conda-forge libedit 3.1.20210216 h27cfd23_1 libev 4.33 h516909a_1 conda-forge libevent 2.1.10 hcdb4288_3 conda-forge libffi 3.3 h58526e2_2 conda-forge libgcc-ng 9.3.0 h2828fa1_19 conda-forge libgfortran-ng 9.3.0 hff62375_19 conda-forge libgfortran5 9.3.0 hff62375_19 conda-forge libglib 2.68.3 h3e27bee_0 conda-forge libiconv 1.16 h516909a_0 conda-forge libidn2 2.3.1 h7f98852_0 conda-forge liblapack 3.9.0 8_mkl conda-forge liblapacke 3.9.0 8_mkl conda-forge libllvm11 11.1.0 hf817b99_2 conda-forge libnghttp2 1.43.0 h812cca2_0 conda-forge libogg 1.3.5 h27cfd23_1 libopencv 4.5.2 py39h2406f9b_0 conda-forge libopus 1.3.1 h7f98852_1 conda-forge libpng 1.6.37 h21135ba_2 conda-forge libpq 13.3 hd57d9b9_0 conda-forge libprotobuf 3.15.8 h780b84a_0 conda-forge libssh2 1.9.0 ha56f1ee_6 conda-forge libstdcxx-ng 9.3.0 h6de172a_19 conda-forge libtasn1 4.16.0 h27cfd23_0 libtiff 4.3.0 hf544144_1 conda-forge libunistring 0.9.10 h14c3975_0 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libuv 1.41.0 h7f98852_0 conda-forge libvorbis 1.3.7 h9c3ff4c_0 conda-forge libwebp-base 1.2.0 h7f98852_2 conda-forge libxcb 1.14 h7b6447c_0 anaconda libxkbcommon 1.0.3 he3ba5ed_0 conda-forge libxml2 2.9.12 h72842e0_0 conda-forge libzopfli 1.0.3 h9c3ff4c_0 conda-forge llvm-openmp 11.1.0 h4bd325d_1 conda-forge lmdb 1.2.1 pypi_0 pypi locket 0.2.1 py39h06a4308_1 lz4-c 1.9.3 h9c3ff4c_0 conda-forge markdown 3.3.4 pyhd8ed1ab_0 conda-forge matplotlib-base 3.4.2 py39h2fa2bec_0 conda-forge mkl 2020.4 h726a3e6_304 conda-forge multidict 5.1.0 py39h3811e60_1 conda-forge mysql-common 8.0.25 ha770c72_2 conda-forge mysql-libs 8.0.25 hfa10184_2 conda-forge ncurses 6.2 h58526e2_4 conda-forge nettle 3.7.3 hbbd107a_1 networkx 2.5 py_0 anaconda ninja 1.10.2 h4bd325d_0 conda-forge nspr 4.30 h9c3ff4c_0 conda-forge nss 3.67 hb5efdd6_0 conda-forge numpy 1.20.3 py39hdbf815f_1 conda-forge oauthlib 3.1.1 pyhd8ed1ab_0 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge opencv 4.5.2 py39hf3d152e_0 conda-forge opencv-python 4.5.2.54 pypi_0 pypi openh264 2.1.1 h780b84a_0 conda-forge openjpeg 2.4.0 hb52868f_1 conda-forge openssl 1.1.1k h7f98852_0 conda-forge packaging 20.9 pyh44b312d_0 conda-forge partd 1.2.0 pyhd8ed1ab_0 conda-forge pcre 8.45 h9c3ff4c_0 conda-forge pillow 8.2.0 py39hf95b381_1 conda-forge pip 21.1.2 pyhd8ed1ab_0 conda-forge pixman 0.40.0 h36c2ea0_0 conda-forge pooch 1.4.0 pyhd8ed1ab_0 conda-forge protobuf 3.15.8 py39he80948d_0 conda-forge py-opencv 4.5.2 py39hef51801_0 conda-forge pyasn1 0.4.8 py_0 conda-forge pyasn1-modules 0.2.8 py_0 anaconda pycparser 2.20 pyh9f0ad1d_2 conda-forge pyjwt 2.1.0 pyhd8ed1ab_0 conda-forge pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pysocks 1.7.1 py39hf3d152e_3 conda-forge python 3.9.5 h49503c6_0_cpython conda-forge python-dateutil 2.8.1 py_0 conda-forge python_abi 3.9 1_cp39 conda-forge pytorch 1.7.1 py3.9_cuda10.2.89_cudnn7.6.5_0 pytorch pywavelets 1.1.1 py39hce5d2b2_3 conda-forge pyyaml 5.4.1 py39h3811e60_0 conda-forge qt 5.12.9 hda022c4_4 conda-forge readline 8.1 h46c0cb4_0 conda-forge requests 2.25.1 pyhd3deb0d_0 conda-forge requests-oauthlib 1.3.0 pyh9f0ad1d_0 conda-forge rsa 4.7.2 pyh44b312d_0 conda-forge scikit-image 0.18.1 py39hde0f152_0 conda-forge scipy 1.6.3 py39hee8e79c_0 conda-forge setuptools 52.0.0 py39h06a4308_0 six 1.16.0 pyh6c4a22f_0 conda-forge sleef 3.5.1 h7f98852_1 conda-forge snappy 1.1.8 he1b5a44_3 conda-forge sqlite 3.35.5 h74cdb3f_0 conda-forge tb-nightly 2.6.0a20210615 pypi_0 pypi tensorboard 2.5.0 pyhd8ed1ab_0 conda-forge tensorboard-data-server 0.6.0 py39h3da14fd_0 conda-forge tensorboard-plugin-wit 1.8.0 pyh44b312d_0 conda-forge tifffile 2021.6.14 pyhd8ed1ab_0 conda-forge tk 8.6.10 h21135ba_1 conda-forge toolz 0.11.1 py_0 conda-forge torchvision 0.8.2 cpu_py39ha229d99_0 tornado 6.1 py39h3811e60_1 conda-forge tqdm 4.61.1 pyhd8ed1ab_0 conda-forge typing-extensions 3.10.0.0 hd8ed1ab_0 conda-forge typing_extensions 3.10.0.0 pyha770c72_0 conda-forge tzdata 2021a he74cb21_0 conda-forge urllib3 1.26.5 pyhd8ed1ab_0 conda-forge werkzeug 2.0.1 pyhd8ed1ab_0 conda-forge wheel 0.36.2 pyhd3deb0d_0 conda-forge x264 1!161.3030 h7f98852_1 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.0.10 h7f98852_0 conda-forge xorg-libsm 1.2.3 hd9c2040_1000 conda-forge xorg-libx11 1.7.2 h7f98852_0 conda-forge xorg-libxext 1.3.4 h7f98852_1 conda-forge xorg-libxrender 0.9.10 h7f98852_1003 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-xextproto 7.3.0 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.5 h516909a_1 conda-forge yaml 0.2.5 h516909a_0 conda-forge yapf 0.31.0 pyhd8ed1ab_0 conda-forge yarl 1.6.3 py39h3811e60_1 conda-forge zfp 0.5.5 h9c3ff4c_5 conda-forge zipp 3.4.1 pyhd8ed1ab_0 conda-forge zlib 1.2.11 h516909a_1010 conda-forge zstd 1.5.0 ha95c52a_0 conda-forge ```
Author
Owner

@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

Set BASICSR_EXT=True to compile the cuda extensions in the BasicSR
It may take several minutes to compile, please be patient

BASICSR_EXT=True pip install basicsr
@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 > **Set BASICSR_EXT=True to compile the cuda extensions in the BasicSR > It may take several minutes to compile, please be patient** ```bash BASICSR_EXT=True pip install basicsr ```
Author
Owner

@jerrymatjila commented on GitHub (Jun 20, 2021):

I followed your instructions

BASICSR_EXT=True pip install basicsr

and still get the same error.

Which version of basicsr is on your working environment?

@jerrymatjila commented on GitHub (Jun 20, 2021): I followed your instructions ```bash BASICSR_EXT=True pip install basicsr ``` and still get the same error. Which version of basicsr is on your working environment?
Author
Owner

@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

@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
Author
Owner

@reason4 commented on GitHub (Jun 21, 2021):

I followed your instructions

BASICSR_EXT=True pip install basicsr

and still get the same error.

Which version of basicsr is on your working environment?

I get the same error. Have you solved it ?

@reason4 commented on GitHub (Jun 21, 2021): > I followed your instructions > > ```shell > BASICSR_EXT=True pip install basicsr > ``` > > and still get the same error. > > Which version of basicsr is on your working environment? I get the same error. Have you solved it ?
Author
Owner

@reason4 commented on GitHub (Jun 22, 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

Using "export BASICSR_JIT='True'" solved my problem, Thanks!

@reason4 commented on GitHub (Jun 22, 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 Using "export BASICSR_JIT='True'" solved my problem, Thanks!
Author
Owner

@xinntao commented on GitHub (Jun 23, 2021):

I followed your instructions

BASICSR_EXT=True pip install basicsr

and still get the same error.

Which version of basicsr is on your working environment?

@jerrymatjila

Maybe there are some errors in compiling the cuda operators.
You may try BASICSR_EXT=True pip install basicsr to see the error log.

OR
You can use export BASICSR_JIT=True during inference, which will compile the operator each time when you are running the program.

@xinntao commented on GitHub (Jun 23, 2021): > I followed your instructions > > ```shell > BASICSR_EXT=True pip install basicsr > ``` > > and still get the same error. > > Which version of basicsr is on your working environment? @jerrymatjila Maybe there are some errors in compiling the cuda operators. You may try `BASICSR_EXT=True pip install basicsr` to see the error log. OR You can use `export BASICSR_JIT=True` during inference, which will compile the operator each time when you are running the program.
Author
Owner

@jerrymatjila commented on GitHub (Jun 23, 2021):

BASICSR_JIT=True shows compilation errors
$ BASICSR_JIT=True python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py:266: UserWarning: 

!! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (c++) is not compatible with the compiler Pytorch was
built with for this platform, which is g++ on linux. Please
use g++ to to compile your extension. Alternatively, you may
compile PyTorch from source using c++, and then you can also use
c++ to compile your extension.

See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
with compiling PyTorch from source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!! WARNING !!

warnings.warn(WRONG_COMPILER_WARNING.format(
Traceback (most recent call last):
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/deform_conv.py", line 10, in <module>
from . import deform_conv_ext
ImportError: /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/deform_conv_ext.cpython-39-x86_64-linux-gnu.so: undefined symbol: _Z35modulated_deform_conv_cuda_backwardN2at6TensorES0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_iiiiiiiiiib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
subprocess.run(
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/deepmind/github/tencentarc/gfpgan/inference_gfpgan_full.py", line 10, in <module>
from archs.gfpganv1_arch import GFPGANv1
File "/deepmind/github/tencentarc/gfpgan/archs/__init__.py", line 4, in <module>
from basicsr.utils import scandir
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/__init__.py", line 3, in <module>
from .archs import *
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/__init__.py", line 16, in <module>
_arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames]
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/__init__.py", line 16, in <listcomp>
_arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames]
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/ridnet_arch.py", line 5, in <module>
from .arch_util import ResidualBlockNoBN, make_layer
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/arch_util.py", line 8, in <module>
from basicsr.ops.dcn import ModulatedDeformConvPack, modulated_deform_conv
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/__init__.py", line 1, in <module>
from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv, ModulatedDeformConvPack, deform_conv,
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/deform_conv.py", line 17, in <module>
deform_conv_ext = load(
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 986, in load
return _jit_compile(
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1193, in _jit_compile
_write_ninja_file_and_build_library(
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1297, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'deform_conv': [1/2] /opt/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=deform_conv -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/TH -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/THC -isystem /opt/cuda/include -isystem /storage/usr/conda/envs/gfpgan/include/python3.9 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_52,code=sm_52 --compiler-options '-fPIC' -std=c++14 -c /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/src/deform_conv_cuda_kernel.cu -o deform_conv_cuda_kernel.cuda.o 
FAILED: deform_conv_cuda_kernel.cuda.o 
/opt/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=deform_conv -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/TH -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/THC -isystem /opt/cuda/include -isystem /storage/usr/conda/envs/gfpgan/include/python3.9 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_52,code=sm_52 --compiler-options '-fPIC' -std=c++14 -c /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/src/deform_conv_cuda_kernel.cu -o deform_conv_cuda_kernel.cuda.o 
/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed

/usr/include/c++/11.1.0/type_traits(1356): error: identifier "__is_same" is undefined

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(190): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list
argument types are: (c10::ScalarType)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(207): error: no suitable constructor exists to convert from "c10::ScalarType" to "c10::optional<c10::ScalarType>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list
argument types are: (uint8_t, __nv_bool)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list
argument types are: (int8_t, __nv_bool)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list
argument types are: (int16_t, __nv_bool)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list
argument types are: (int, __nv_bool)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list
argument types are: (int64_t, __nv_bool)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(138): error: no suitable constructor exists to convert from "c10::Layout" to "c10::optional<c10::Layout>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(164): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list
argument types are: (caffe2::TypeMeta)
object type is: c10::TensorOptions

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(169): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list
argument types are: (c10::ScalarType)
object type is: c10::TensorOptions

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(174): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::Device]" matches the argument list
argument types are: (const c10::Device)
detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const c10::Device &]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(265): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=caffe2::TypeMeta]" matches the argument list
argument types are: (const caffe2::TypeMeta)
detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const caffe2::TypeMeta &]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(286): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::Layout]" matches the argument list
argument types are: (const c10::Layout)
detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const c10::Layout &]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(302): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=__nv_bool]" matches the argument list
argument types are: (const __nv_bool)
detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const __nv_bool &]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(319): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::MemoryFormat]" matches the argument list
argument types are: (const c10::MemoryFormat)
detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const c10::MemoryFormat &]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(359): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(524): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list
argument types are: (caffe2::TypeMeta)
object type is: c10::TensorOptions

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(529): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list
argument types are: (caffe2::TypeMeta)
object type is: c10::TensorOptions

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(535): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list
argument types are: (c10::Layout)
object type is: c10::TensorOptions

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(553): error: no instance of overloaded function "c10::TensorOptions::requires_grad" matches the argument list
argument types are: (__nv_bool)
object type is: c10::TensorOptions

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(559): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(412): error: class "std::enable_if<<error-constant>, c10::optional<c10::Device> &>" has no member "type"
detected during instantiation of "c10::optional<T>::operator= [with T=c10::Device]" based on template argument <c10::Device> 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorImpl.h(1247): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorImpl.h(1785): error: static assertion failed with "You changed the size of TensorImpl on 64-bit arch.See Note [TensorImpl size constraints] on how toproceed."

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h(95): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list
argument types are: (caffe2::TypeMeta)
object type is: c10::TensorOptions

/usr/include/c++/11.1.0/type_traits(2514): error: class "std::enable_if<<error-constant>, c10::complex<float>>" has no member "type"
detected during:
instantiation of type "std::enable_if_t<<error-constant>, c10::complex<float>>" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/complex.h(149): here
instantiation of "c10::complex<T>::complex [with T=double]" based on template argument <double> 
(906): here
instantiation of class "std::__is_constructible_impl<_Tp, _Args...> [with _Tp=c10::Scalar, _Args=<const c10::nullopt_t &>]" 
(912): here
instantiation of class "std::is_constructible<_Tp, _Args...> [with _Tp=c10::Scalar, _Args=<const c10::nullopt_t &>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h(646): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(28): error: no instance of constructor "c10::impl::InlineDeviceGuard<T>::InlineDeviceGuard [with T=c10::impl::VirtualGuardImpl]" matches the argument list
argument types are: (c10::Device, const c10::impl::DeviceGuardImplInterface *)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(47): error: more than one instance of overloaded function "c10::impl::InlineDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list:
function template "std::enable_if<<expression>, void>::type c10::impl::InlineDeviceGuard<T>::reset_device(c10::Device) [with T=c10::impl::VirtualGuardImpl]"
function template "std::enable_if<std::is_same<U, c10::impl::VirtualGuardImpl>::value, void>::type c10::impl::InlineDeviceGuard<T>::reset_device(c10::Device, const c10::impl::DeviceGuardImplInterface *) [with T=c10::impl::VirtualGuardImpl]"
argument types are: (c10::Device)
object type is: c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(143): error: class "std::enable_if<<error-constant>, void>" has no member "type"
detected during instantiation of "c10::impl::InlineDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" based on template argument <c10::impl::VirtualGuardImpl> 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(52): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here
instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here
instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::in_place_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here
instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here
instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::in_place_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here
instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here
instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<int16_t>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=c10::DeviceIndex]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<int16_t>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=c10::DeviceIndex]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Device, _Up=c10::optional<c10::DeviceIndex>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Device, _Up=c10::optional<c10::DeviceIndex>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<c10::Device>, _Up=c10::optional<c10::DeviceIndex>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(129): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<c10::Device>, _Up=c10::optional<c10::DeviceIndex>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(129): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(148): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list
argument types are: (c10::Device)
object type is: c10::impl::InlineOptionalDeviceGuard<c10::impl::VirtualGuardImpl>

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(153): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list
argument types are: (c10::Device, const c10::impl::DeviceGuardImplInterface *)
object type is: c10::impl::InlineOptionalDeviceGuard<c10::impl::VirtualGuardImpl>

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::Device]" matches the argument list
argument types are: (c10::Device)
detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=c10::Device]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/DeviceGuard.h(19): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(428): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(429): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(430): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>"

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(431): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>"

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::optional<int64_t>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(489): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::optional<int64_t>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(489): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(489): error: no suitable constructor exists to convert from "int" to "c10::optional<int64_t>"

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=std::string]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=std::string]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::in_place_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here
instantiation of class "c10::optional<T> [with T=std::string]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::in_place_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here
instantiation of class "c10::optional<T> [with T=std::string]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<std::string>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<std::string>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::nullopt_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here
instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::in_place_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here
instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::in_place_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here
instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<c10::IntArrayRef>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<c10::IntArrayRef>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Up=std::vector<int64_t, std::allocator<int64_t>>]" 
/usr/include/c++/11.1.0/bits/stl_vector.h(401): here
instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Alloc=std::allocator<std::vector<int64_t, std::allocator<int64_t>>>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/WrapDimUtils.h(26): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Up=std::vector<int64_t, std::allocator<int64_t>>]" 
/usr/include/c++/11.1.0/bits/stl_vector.h(401): here
instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Alloc=std::allocator<std::vector<int64_t, std::allocator<int64_t>>>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/WrapDimUtils.h(26): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::guts::typelist::last_t<c10::guts::typelist::typelist<double, float, int>>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(266): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::guts::typelist::last_t<c10::guts::typelist::typelist<double, float, int>>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(266): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::tuple<int32_t>, _Up=std::__remove_cvref_t<int>]" 
/usr/include/c++/11.1.0/tuple(657): here
instantiation of "__nv_bool std::tuple<_Elements...>::__valid_args<_Up>() [with _Elements=<int32_t>, _Up=int]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::tuple<int32_t>, _Up=std::__remove_cvref_t<int>]" 
/usr/include/c++/11.1.0/tuple(657): here
instantiation of "__nv_bool std::tuple<_Elements...>::__valid_args<_Up>() [with _Elements=<int32_t>, _Up=int]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cvref_t<int>, _Up=std::allocator_arg_t]" 
/usr/include/c++/11.1.0/tuple(1032): here
instantiation of "__nv_bool std::tuple<_T1, _T2>::__is_alloc_arg<_U1>() [with _T1=int32_t &&, _T2=int32_t, _U1=int32_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cvref_t<int>, _Up=std::allocator_arg_t]" 
/usr/include/c++/11.1.0/tuple(1032): here
instantiation of "__nv_bool std::tuple<_T1, _T2>::__is_alloc_arg<_U1>() [with _T1=int32_t &&, _T2=int32_t, _U1=int32_t]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): error: no instance of constructor "std::tuple<_T1, _T2>::tuple [with _T1=int32_t &&, _T2=int32_t]" matches the argument list
argument types are: (int32_t, int)

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): error: no instance of overloaded function "c10::guts::detail::extract_tuple_element_by_index" matches the argument list
argument types are: (std::tuple<int32_t>, <error-type>)

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int &&, _Up=<error-type>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(233): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int &&, _Up=<error-type>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(233): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=int]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=int]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=__nv_bool, _Up=__nv_bool]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=__nv_bool, _Up=__nv_bool]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): error: static assertion failed with "In typelist::count_if<Condition, TypeList>, the Condition argument must be a condition type trait, i.e. have a static constexpr bool ::value member."
detected during:
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" 
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(104): error: static assertion failed with "In typelist::filter<Condition, TypeList>, the Condition argument must be a condition type trait, i.e.have a static constexpr bool ::value member."
detected during:
instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]"
(117): here
instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>"
(131): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=signed long]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(43): here
instantiation of type "c10::impl::detail::is_tensoroptions_arg_t<int64_t>"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(106): here
instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(117): here
instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(131): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=signed long]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(43): here
instantiation of type "c10::impl::detail::is_tensoroptions_arg_t<int64_t>"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(106): here
instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(117): here
instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(131): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(104): error: static assertion failed with "In typelist::filter<Condition, TypeList>, the Condition argument must be a condition type trait, i.e.have a static constexpr bool ::value member."
detected during:
instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=const c10::TensorOptions &, Tail=<>]"
(107): here
instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]"
(117): here
instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>"
(131): here
instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here
instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]"
/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here

Error limit reached.
100 errors detected in the compilation of "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/src/deform_conv_cuda_kernel.cu".
Compilation terminated.
ninja: build stopped: subcommand failed.

I'll ask the people at https://github.com/xinntao/BasicSR for further advice.

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0
$ gcc --version
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you don't mind can you share your exported conda environment conda env export?

@jerrymatjila commented on GitHub (Jun 23, 2021): <details> <summary><code>BASICSR_JIT=True</code> shows compilation errors</summary> ```bash $ BASICSR_JIT=True python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py:266: UserWarning: !! WARNING !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your compiler (c++) is not compatible with the compiler Pytorch was built with for this platform, which is g++ on linux. Please use g++ to to compile your extension. Alternatively, you may compile PyTorch from source using c++, and then you can also use c++ to compile your extension. See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help with compiling PyTorch from source. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! WARNING !! warnings.warn(WRONG_COMPILER_WARNING.format( Traceback (most recent call last): File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/deform_conv.py", line 10, in <module> from . import deform_conv_ext ImportError: /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/deform_conv_ext.cpython-39-x86_64-linux-gnu.so: undefined symbol: _Z35modulated_deform_conv_cuda_backwardN2at6TensorES0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_iiiiiiiiiib During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build subprocess.run( File "/storage/usr/conda/envs/gfpgan/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/deepmind/github/tencentarc/gfpgan/inference_gfpgan_full.py", line 10, in <module> from archs.gfpganv1_arch import GFPGANv1 File "/deepmind/github/tencentarc/gfpgan/archs/__init__.py", line 4, in <module> from basicsr.utils import scandir File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/__init__.py", line 3, in <module> from .archs import * File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/__init__.py", line 16, in <module> _arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames] File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/__init__.py", line 16, in <listcomp> _arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames] File "/storage/usr/conda/envs/gfpgan/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/ridnet_arch.py", line 5, in <module> from .arch_util import ResidualBlockNoBN, make_layer File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/archs/arch_util.py", line 8, in <module> from basicsr.ops.dcn import ModulatedDeformConvPack, modulated_deform_conv File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/__init__.py", line 1, in <module> from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv, ModulatedDeformConvPack, deform_conv, File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/deform_conv.py", line 17, in <module> deform_conv_ext = load( File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 986, in load return _jit_compile( File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1193, in _jit_compile _write_ninja_file_and_build_library( File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1297, in _write_ninja_file_and_build_library _run_ninja_build( File "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension 'deform_conv': [1/2] /opt/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=deform_conv -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/TH -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/THC -isystem /opt/cuda/include -isystem /storage/usr/conda/envs/gfpgan/include/python3.9 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_52,code=sm_52 --compiler-options '-fPIC' -std=c++14 -c /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/src/deform_conv_cuda_kernel.cu -o deform_conv_cuda_kernel.cuda.o FAILED: deform_conv_cuda_kernel.cuda.o /opt/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=deform_conv -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/TH -isystem /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/THC -isystem /opt/cuda/include -isystem /storage/usr/conda/envs/gfpgan/include/python3.9 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_52,code=sm_52 --compiler-options '-fPIC' -std=c++14 -c /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/src/deform_conv_cuda_kernel.cu -o deform_conv_cuda_kernel.cuda.o /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed /usr/include/c++/11.1.0/type_traits(1356): error: identifier "__is_same" is undefined /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(187): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(190): error: no instance of constructor "c10::optional<T>::optional [with T=c10::ScalarType]" matches the argument list argument types are: (c10::ScalarType) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h(207): error: no suitable constructor exists to convert from "c10::ScalarType" to "c10::optional<c10::ScalarType>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (uint8_t, __nv_bool) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int8_t, __nv_bool) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int16_t, __nv_bool) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int, __nv_bool) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int64_t, __nv_bool) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(138): error: no suitable constructor exists to convert from "c10::Layout" to "c10::optional<c10::Layout>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(164): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(169): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list argument types are: (c10::ScalarType) object type is: c10::TensorOptions /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(174): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::Device]" matches the argument list argument types are: (const c10::Device) detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const c10::Device &]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(265): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=caffe2::TypeMeta]" matches the argument list argument types are: (const caffe2::TypeMeta) detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const caffe2::TypeMeta &]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(286): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::Layout]" matches the argument list argument types are: (const c10::Layout) detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const c10::Layout &]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(302): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=__nv_bool]" matches the argument list argument types are: (const __nv_bool) detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const __nv_bool &]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(319): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::MemoryFormat]" matches the argument list argument types are: (const c10::MemoryFormat) detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=const c10::MemoryFormat &]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(359): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(524): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(529): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(535): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list argument types are: (c10::Layout) object type is: c10::TensorOptions /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(553): error: no instance of overloaded function "c10::TensorOptions::requires_grad" matches the argument list argument types are: (__nv_bool) object type is: c10::TensorOptions /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorOptions.h(559): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(412): error: class "std::enable_if<<error-constant>, c10::optional<c10::Device> &>" has no member "type" detected during instantiation of "c10::optional<T>::operator= [with T=c10::Device]" based on template argument <c10::Device> /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorImpl.h(1247): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/TensorImpl.h(1785): error: static assertion failed with "You changed the size of TensorImpl on 64-bit arch.See Note [TensorImpl size constraints] on how toproceed." /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h(95): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions /usr/include/c++/11.1.0/type_traits(2514): error: class "std::enable_if<<error-constant>, c10::complex<float>>" has no member "type" detected during: instantiation of type "std::enable_if_t<<error-constant>, c10::complex<float>>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/complex.h(149): here instantiation of "c10::complex<T>::complex [with T=double]" based on template argument <double> (906): here instantiation of class "std::__is_constructible_impl<_Tp, _Args...> [with _Tp=c10::Scalar, _Args=<const c10::nullopt_t &>]" (912): here instantiation of class "std::is_constructible<_Tp, _Args...> [with _Tp=c10::Scalar, _Args=<const c10::nullopt_t &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h(646): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(28): error: no instance of constructor "c10::impl::InlineDeviceGuard<T>::InlineDeviceGuard [with T=c10::impl::VirtualGuardImpl]" matches the argument list argument types are: (c10::Device, const c10::impl::DeviceGuardImplInterface *) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(47): error: more than one instance of overloaded function "c10::impl::InlineDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list: function template "std::enable_if<<expression>, void>::type c10::impl::InlineDeviceGuard<T>::reset_device(c10::Device) [with T=c10::impl::VirtualGuardImpl]" function template "std::enable_if<std::is_same<U, c10::impl::VirtualGuardImpl>::value, void>::type c10::impl::InlineDeviceGuard<T>::reset_device(c10::Device, const c10::impl::DeviceGuardImplInterface *) [with T=c10::impl::VirtualGuardImpl]" argument types are: (c10::Device) object type is: c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl> /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(143): error: class "std::enable_if<<error-constant>, void>" has no member "type" detected during instantiation of "c10::impl::InlineDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" based on template argument <c10::impl::VirtualGuardImpl> /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(52): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::in_place_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>, _Up=c10::in_place_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here instantiation of class "c10::optional<T> [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(388): here instantiation of class "c10::impl::InlineOptionalDeviceGuard<T> [with T=c10::impl::VirtualGuardImpl]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(168): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<int16_t>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=c10::DeviceIndex]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<int16_t>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=c10::DeviceIndex]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Device, _Up=c10::optional<c10::DeviceIndex>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Device, _Up=c10::optional<c10::DeviceIndex>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(125): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<c10::Device>, _Up=c10::optional<c10::DeviceIndex>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(129): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<c10::Device>, _Up=c10::optional<c10::DeviceIndex>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(129): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(148): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list argument types are: (c10::Device) object type is: c10::impl::InlineOptionalDeviceGuard<c10::impl::VirtualGuardImpl> /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/core/DeviceGuard.h(153): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard<T>::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list argument types are: (c10::Device, const c10::impl::DeviceGuardImplInterface *) object type is: c10::impl::InlineOptionalDeviceGuard<c10::impl::VirtualGuardImpl> /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(919): error: no instance of constructor "c10::optional<T>::optional [with T=c10::Device]" matches the argument list argument types are: (c10::Device) detected during instantiation of "c10::optional<std::decay<T>::type> c10::make_optional(T &&) [with T=c10::Device]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/DeviceGuard.h(19): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(428): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(429): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(430): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(431): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional<c10::MemoryFormat>" /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::optional<int64_t>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(489): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::optional<int64_t>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(489): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(489): error: no suitable constructor exists to convert from "int" to "c10::optional<int64_t>" /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=std::string]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=std::string]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::in_place_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here instantiation of class "c10::optional<T> [with T=std::string]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<std::string>, _Up=c10::in_place_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here instantiation of class "c10::optional<T> [with T=std::string]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<std::string>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<std::string>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2110): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::nullopt_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(261): here instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::in_place_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cv_t<c10::IntArrayRef>, _Up=c10::in_place_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Optional.h(264): here instantiation of class "c10::optional<T> [with T=c10::IntArrayRef]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<c10::IntArrayRef>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional<c10::IntArrayRef>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/NativeFunctions.h(2116): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Up=std::vector<int64_t, std::allocator<int64_t>>]" /usr/include/c++/11.1.0/bits/stl_vector.h(401): here instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Alloc=std::allocator<std::vector<int64_t, std::allocator<int64_t>>>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/WrapDimUtils.h(26): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Up=std::vector<int64_t, std::allocator<int64_t>>]" /usr/include/c++/11.1.0/bits/stl_vector.h(401): here instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=std::vector<int64_t, std::allocator<int64_t>>, _Alloc=std::allocator<std::vector<int64_t, std::allocator<int64_t>>>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/WrapDimUtils.h(26): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::guts::typelist::last_t<c10::guts::typelist::typelist<double, float, int>>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(266): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int, _Up=c10::guts::typelist::last_t<c10::guts::typelist::typelist<double, float, int>>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(266): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::tuple<int32_t>, _Up=std::__remove_cvref_t<int>]" /usr/include/c++/11.1.0/tuple(657): here instantiation of "__nv_bool std::tuple<_Elements...>::__valid_args<_Up>() [with _Elements=<int32_t>, _Up=int]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::tuple<int32_t>, _Up=std::__remove_cvref_t<int>]" /usr/include/c++/11.1.0/tuple(657): here instantiation of "__nv_bool std::tuple<_Elements...>::__valid_args<_Up>() [with _Elements=<int32_t>, _Up=int]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cvref_t<int>, _Up=std::allocator_arg_t]" /usr/include/c++/11.1.0/tuple(1032): here instantiation of "__nv_bool std::tuple<_T1, _T2>::__is_alloc_arg<_U1>() [with _T1=int32_t &&, _T2=int32_t, _U1=int32_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::__remove_cvref_t<int>, _Up=std::allocator_arg_t]" /usr/include/c++/11.1.0/tuple(1032): here instantiation of "__nv_bool std::tuple<_T1, _T2>::__is_alloc_arg<_U1>() [with _T1=int32_t &&, _T2=int32_t, _U1=int32_t]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): error: no instance of constructor "std::tuple<_T1, _T2>::tuple [with _T1=int32_t &&, _T2=int32_t]" matches the argument list argument types are: (int32_t, int) /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(232): error: no instance of overloaded function "c10::guts::detail::extract_tuple_element_by_index" matches the argument list argument types are: (std::tuple<int32_t>, <error-type>) /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int &&, _Up=<error-type>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(233): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=int &&, _Up=<error-type>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/Metaprogramming.h(233): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=int]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=int]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=__nv_bool, _Up=__nv_bool]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=__nv_bool, _Up=__nv_bool]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(128): error: static assertion failed with "In typelist::count_if<Condition, TypeList>, the Condition argument must be a condition type trait, i.e. have a static constexpr bool ::value member." detected during: instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(104): error: static assertion failed with "In typelist::filter<Condition, TypeList>, the Condition argument must be a condition type trait, i.e.have a static constexpr bool ::value member." detected during: instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]" (117): here instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>" (131): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=signed long]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(43): here instantiation of type "c10::impl::detail::is_tensoroptions_arg_t<int64_t>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(106): here instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(117): here instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(131): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /usr/include/c++/11.1.0/type_traits(1356): error: type name is not allowed detected during: instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::TensorOptions, _Up=signed long]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(43): here instantiation of type "c10::impl::detail::is_tensoroptions_arg_t<int64_t>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(106): here instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(117): here instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(131): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/c10/util/TypeList.h(104): error: static assertion failed with "In typelist::filter<Condition, TypeList>, the Condition argument must be a condition type trait, i.e.have a static constexpr bool ::value member." detected during: instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=const c10::TensorOptions &, Tail=<>]" (107): here instantiation of class "c10::guts::typelist::filter<Condition, c10::guts::typelist::typelist<Head, Tail...>> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, Head=int64_t, Tail=<const c10::TensorOptions &>]" (117): here instantiation of type "c10::guts::typelist::filter_t<c10::impl::detail::is_tensoroptions_arg_t, c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>>" (131): here instantiation of class "c10::guts::typelist::count_if<Condition, TypeList> [with Condition=c10::impl::detail::is_tensoroptions_arg_t, TypeList=c10::guts::typelist::typelist<int64_t, const c10::TensorOptions &>]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): here instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg<FuncType>() [with FuncType=int (int64_t, const c10::TensorOptions &)]" /storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/torch/include/ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): here Error limit reached. 100 errors detected in the compilation of "/storage/usr/conda/envs/gfpgan/lib/python3.9/site-packages/basicsr/ops/dcn/src/deform_conv_cuda_kernel.cu". Compilation terminated. ninja: build stopped: subcommand failed. ``` </details> I'll ask the people at [https://github.com/xinntao/BasicSR](https://github.com/xinntao/BasicSR) for further advice. ```bash $ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Mon_Oct_12_20:09:46_PDT_2020 Cuda compilation tools, release 11.1, V11.1.105 Build cuda_11.1.TC455_06.29190527_0 ``` ```bash $ gcc --version gcc (GCC) 11.1.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` If you don't mind can you share your exported conda environment <code>conda env export</code>?
Author
Owner

@jerrymatjila commented on GitHub (Jun 23, 2021):

After asking for help from BasicSR, a solution was found.

conda install gcc_linux-64=7.3.0 gxx_linux-64=7.3.0

In my case, quick inference works by using BASICSR_JIT=True.

$ BASICSR_JIT=True python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
Processing 00.jpg ...
Processing 10045.png ...
Results are in the <results> folder.
$ BASICSR_JIT=True python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
Processing Adele_crop.png ...
Processing Julia_Roberts_crop.png ...
Processing Justin_Timberlake_crop.png ...
Processing Paris_Hilton_crop.png ...
Results are in the <results> folder.

Thanks for your assistance and this wonderful project.

@jerrymatjila commented on GitHub (Jun 23, 2021): After asking for help from [BasicSR](https://github.com/xinntao/BasicSR/issues/410#issuecomment-866887696), a solution was found. ```bash conda install gcc_linux-64=7.3.0 gxx_linux-64=7.3.0 ``` In my case, [quick inference](https://github.com/TencentARC/GFPGAN#zap-quick-inference) works by using <code>BASICSR_JIT=True</code>. ```bash $ BASICSR_JIT=True python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs Processing 00.jpg ... Processing 10045.png ... Results are in the <results> folder. ``` ```bash $ BASICSR_JIT=True python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned Processing Adele_crop.png ... Processing Julia_Roberts_crop.png ... Processing Justin_Timberlake_crop.png ... Processing Paris_Hilton_crop.png ... Results are in the <results> folder. ``` Thanks for your assistance and this wonderful project.
Author
Owner

@xinntao commented on GitHub (Jun 23, 2021):

@jerrymatjila
Thanks!

@xinntao commented on GitHub (Jun 23, 2021): @jerrymatjila Thanks!
Author
Owner

@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!

@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!
Author
Owner

@woctezuma 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!

This is an environment variable used by the BasicSR package.

f2d3510bf7/setup.py (L117)

@woctezuma 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! This is an environment variable used by the `BasicSR` package. https://github.com/xinntao/BasicSR/blob/f2d3510bf7044c7bacfdbb1396b281faac918cf1/setup.py#L117
Author
Owner

@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!

This is an environment variable used by the BasicSR package.

f2d3510bf7/setup.py (L117)

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?

@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! > > This is an environment variable used by the `BasicSR` package. > > https://github.com/xinntao/BasicSR/blob/f2d3510bf7044c7bacfdbb1396b281faac918cf1/setup.py#L117 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?
Author
Owner

@Harighs commented on GitHub (Jul 23, 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

Using "export BASICSR_JIT='True'" solved my problem, Thanks!

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?

@Harighs commented on GitHub (Jul 23, 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 > > Using "export BASICSR_JIT='True'" solved my problem, Thanks! 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?
Author
Owner

@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

@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
Author
Owner

@HangAround47 commented on GitHub (Sep 3, 2021):

Does win10 fail to solve this error?

@HangAround47 commented on GitHub (Sep 3, 2021): Does win10 fail to solve this error?
Author
Owner

@chenglih commented on GitHub (Apr 28, 2023):

BASICSR_JIT=True shows compilation errors

I'll ask the people at https://github.com/xinntao/BasicSR for further advice.

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0
$ gcc --version
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you don't mind can you share your exported conda environment conda env export?

i am a rookie,where can i use the method in pycharm

@chenglih commented on GitHub (Apr 28, 2023): > `BASICSR_JIT=True` shows compilation errors > > I'll ask the people at https://github.com/xinntao/BasicSR for further advice. > > ```shell > $ nvcc --version > nvcc: NVIDIA (R) Cuda compiler driver > Copyright (c) 2005-2020 NVIDIA Corporation > Built on Mon_Oct_12_20:09:46_PDT_2020 > Cuda compilation tools, release 11.1, V11.1.105 > Build cuda_11.1.TC455_06.29190527_0 > ``` > > ```shell > $ gcc --version > gcc (GCC) 11.1.0 > Copyright (C) 2021 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > ``` > > If you don't mind can you share your exported conda environment `conda env export`? i am a rookie,where can i use the method in pycharm
Author
Owner

@LikaiLiu-lh commented on GitHub (May 15, 2023):

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

Using "export BASICSR_JIT='True'" solved my problem, Thanks!

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?

I run the script like this in terminal : sh run.sh export ...
in this way sovle the problem

@LikaiLiu-lh commented on GitHub (May 15, 2023): > > > 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 > > > > > > Using "export BASICSR_JIT='True'" solved my problem, Thanks! > > 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? I run the script like this in terminal : sh run.sh export ... in this way sovle the problem
Author
Owner

@Michael-shz commented on GitHub (Jun 15, 2023):

BASICSR_EXT=True pip install basicsr

use "BASICSR_EXT=True pip install basicsr" solved problem, thank u~

@Michael-shz commented on GitHub (Jun 15, 2023): > ```shell > BASICSR_EXT=True pip install basicsr > ``` use "BASICSR_EXT=True pip install basicsr" solved problem, thank u~
Author
Owner

@YuzheZhang-1999 commented on GitHub (Sep 25, 2023):

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

Using "export BASICSR_JIT='True'" solved my problem, Thanks!

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?

same problem!
how do you solve it then?

@YuzheZhang-1999 commented on GitHub (Sep 25, 2023): > > > 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 > > > > > > Using "export BASICSR_JIT='True'" solved my problem, Thanks! > > 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? same problem! how do you solve it then?
Author
Owner

@YuzheZhang-1999 commented on GitHub (Sep 25, 2023):

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!

This is an environment variable used by the BasicSR package.
f2d3510bf7/setup.py (L117)

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?

I met the same problem, did you solve it?

@YuzheZhang-1999 commented on GitHub (Sep 25, 2023): > > > 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! > > > > > > This is an environment variable used by the `BasicSR` package. > > https://github.com/xinntao/BasicSR/blob/f2d3510bf7044c7bacfdbb1396b281faac918cf1/setup.py#L117 > > 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? I met the same problem, did you solve it?
Author
Owner

@yayinliqing commented on GitHub (Oct 16, 2023):

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!

你解决了吗

@yayinliqing commented on GitHub (Oct 16, 2023): > 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! 你解决了吗
Author
Owner

@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 ?

@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 ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#6