factor-fields icon indicating copy to clipboard operation
factor-fields copied to clipboard

args is not defined in train_across_scene.py

Open onpix opened this issue 2 years ago • 3 comments

as titled, train_across_scene.py:L212 is:

if args.render_train:
    ...

But args is not defined.

onpix avatar Aug 24 '23 08:08 onpix

Ah, thank you! Yeah, it should be "cfg. render_train:", will fix it

apchenstu avatar Aug 25 '23 06:08 apchenstu

Thanks for your response. But it seems that the L215 has an error as well:

PSNRs_test = evaluation(train_dataset,model, args, renderer, f'{logfolder}/imgs_train_all/',
                                N_vis=-1, N_samples=-1, white_bg = white_bg, ndc_ray=ndc_ray,device=device)

I guess args should not be here, and renderer is also not defined._

onpix avatar Aug 28 '23 06:08 onpix

Ah okay, thanks!

apchenstu avatar Sep 03 '23 07:09 apchenstu