FENeRF icon indicating copy to clipboard operation
FENeRF copied to clipboard

TypeError: can't multiply sequence by non-int of type 'float'

Open c1a1o1 opened this issue 2 years ago • 1 comments

D:\anaconda\lib\site-packages\torch\functional.py:568: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2228.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Traceback (most recent call last): File "D:/work/vgan/FENeRF-main/inverse_render_double_semantic.py", line 582, in checkpoint_path = run_inverse_render(opt, opt.image_path, opt.seg_path) File "D:/work/vgan/FENeRF-main/inverse_render_double_semantic.py", line 404, in run_inverse_render loss += opt.lambda_norm * norm_loss TypeError: can't multiply sequence by non-int of type 'float'

c1a1o1 avatar Jul 11 '22 08:07 c1a1o1

Hi, what value did you set to lambda_norm? Please make sure it is a float type value. I guess one simple way is to change loss += opt.lambda_norm * norm_loss into loss += float(opt.lambda_norm) * norm_loss

MrTornado24 avatar Jul 11 '22 17:07 MrTornado24