Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python inference/genefacepp_infer.py #232

Open
newworld1020 opened this issue Oct 22, 2024 · 0 comments
Open

python inference/genefacepp_infer.py #232

newworld1020 opened this issue Oct 22, 2024 · 0 comments

Comments

@newworld1020
Copy link

G:\GeneFacePlusPlus.\modules\radnerfs\utils.py:38: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@custom_fwd(cast_inputs=torch.float32, device_type='cuda')#@custom_fwd(cast_inputs=torch.float32) # cast to float32
Traceback (most recent call last):
File "G:\GeneFacePlusPlus\inference\genefacepp_infer.py", line 35, in
from tasks.radnerfs.dataset_utils import RADNeRFDataset, get_boundary_mask, dilate_boundary_mask, get_lf_boundary_mask
File "G:\GeneFacePlusPlus.\tasks\radnerfs\dataset_utils.py", line 16, in
from modules.radnerfs.utils import get_audio_features, get_rays, get_bg_coords, convert_poses, nerf_matrix_to_ngp
File "G:\GeneFacePlusPlus.\modules\radnerfs\utils.py", line 36, in
class _trunc_exp(Function):
File "G:\GeneFacePlusPlus.\modules\radnerfs\utils.py", line 38, in _trunc_exp
@custom_fwd(cast_inputs=torch.float32, device_type='cuda')#@custom_fwd(cast_inputs=torch.float32) # cast to float32
File "D:\ANACONDA\envs\geneface\lib\site-packages\typing_extensions.py", line 2636, in wrapper
return arg(*args, **kwargs)
TypeError: custom_fwd() got an unexpected keyword argument 'device_type'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant