cassiePython / CLIPNeRF

CLIP-NeRF: Text-and-Image Driven Manipulation of Neural Radiance Fields
Apache License 2.0
259 stars 15 forks source link

RuntimeError: shape '[60, 60, -1]' is invalid for input of size 3072 in llff dataset #15

Open Zzzhewang opened 2 years ago

Zzzhewang commented 2 years ago

Hi cassie, thank you so much for your amazing works! i have encountered some problems when running the llff data set. It said that RuntimeError: shape '[60, 60, -1]' is invalid for input of size 3072. how can i fix this problem? Look forward for your replying. thanks again! Traceback (most recent call last): File "run_nerf_clip.py", line 885, in train() File "run_nerf_clip.py", line 805, in train rgb_img = rgb.view(sample_scale, sample_scale, -1) RuntimeError: shape '[60, 60, -1]' is invalid for input of size 3072

HannahHaensen commented 2 years ago

@Zzzhewang were you able to fix this`? i faced the same problem

cassiePython commented 2 years ago

You should change the number of sampled rays to patch-size * patch-size.