Giter Club home page Giter Club logo

Comments (21)

reason4 avatar reason4 commented on May 22, 2024 10

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!

from gfpgan.

ylepaih avatar ylepaih commented on May 22, 2024 9

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

from gfpgan.

jerrymatjila avatar jerrymatjila commented on May 22, 2024 3

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.

from gfpgan.

woctezuma avatar woctezuma commented on May 22, 2024 1

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

from gfpgan.

jerrymatjila avatar jerrymatjila commented on May 22, 2024 1

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?

from gfpgan.

xypu98 avatar xypu98 commented on May 22, 2024 1

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

from gfpgan.

reason4 avatar reason4 commented on May 22, 2024

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 ?

from gfpgan.

xinntao avatar xinntao commented on May 22, 2024

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.

from gfpgan.

jerrymatjila avatar jerrymatjila commented on May 22, 2024
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?

from gfpgan.

xinntao avatar xinntao commented on May 22, 2024

@jerrymatjila
Thanks!

from gfpgan.

Hbroda avatar Hbroda commented on May 22, 2024

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!

from gfpgan.

woctezuma avatar woctezuma commented on May 22, 2024

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

from gfpgan.

Hbroda avatar Hbroda commented on May 22, 2024

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?

from gfpgan.

Harighs avatar Harighs commented on May 22, 2024

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?

from gfpgan.

chengkeng avatar chengkeng commented on May 22, 2024

Does win10 fail to solve this error?

from gfpgan.

chenglih avatar chenglih commented on May 22, 2024

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

from gfpgan.

LikaiLiu-lh avatar LikaiLiu-lh commented on May 22, 2024

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

from gfpgan.

Michael-shz avatar Michael-shz commented on May 22, 2024
BASICSR_EXT=True pip install basicsr

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

from gfpgan.

YuzheZhang-1999 avatar YuzheZhang-1999 commented on May 22, 2024

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?

from gfpgan.

YuzheZhang-1999 avatar YuzheZhang-1999 commented on May 22, 2024

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?

from gfpgan.

yayinliqing avatar yayinliqing commented on May 22, 2024

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!

你解决了吗

from gfpgan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.