CLIPNeRF icon indicating copy to clipboard operation
CLIPNeRF copied to clipboard

module 'kornia' has no attribute 'rgb_to_grayscale'

Open ZYY-666 opened this issue 2 years ago • 5 comments

It seems that the version of my kornia is not the same as the one you use, so can you tell me your kornia version?

ZYY-666 avatar Jul 24 '22 13:07 ZYY-666

This problom occurs in File "run_nerf_clip.py", line 808, in train: rgb_img_gray = kornia.rgb_to_grayscale(rgb_img)

ZYY-666 avatar Jul 24 '22 13:07 ZYY-666

try this kornia.color.rgb_to_grayscale()

zimingzhong avatar Jul 25 '22 08:07 zimingzhong

imageio~=2.21.1
imageio-ffmpeg
matplotlib
configargparse
tensorboard>=2.0
tqdm~=4.64.0
opencv-python~=4.6.0.66

torch~=1.8.2+cu111
clip~=1.0
numpy~=1.23.2
kornia~=0.6.6

can you update the requirements? so that all packages are included?

HannahHaensen avatar Aug 22 '22 08:08 HannahHaensen

@ZYY-666 does the training work for you and result in the images from the repository? https://github.com/cassiePython/CLIPNeRF/issues/9#issuecomment-1229816586

for me the loss is not going down... and the resulting images look rather laggy

HannahHaensen avatar Aug 29 '22 06:08 HannahHaensen

try this kornia.color.rgb_to_grayscale()

Thanks. this works for mE!

tmrnvcome avatar May 25 '23 08:05 tmrnvcome