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

Rendering results of nerf_synthetic lego validation dataset by provided single-scene model #16

Open
leo-frank opened this issue Jul 20, 2023 · 4 comments

Comments

@leo-frank
Copy link

Description:

I use the pretrained model that you provided at lego synthetic by provided single-scene model at https://drive.google.com/file/d/1IbhbBr5XfxQz0jSQM3nLX_htTbvc59kj/view?usp=share_link
the command is:
CUDA_VISIBLE_DEVICES=2 python3 eval.py --config configs/gnt_blender.txt \ --eval_dataset nerf_synthetic \ --eval_scenes lego --run_val\ --expname gnt_author_pretrained_single_lego \ --ckpt_path out/gnt_lego_from_single_ckpt/pretrained_lego_model_435000.pth \
(gnt_blender.txt is not modified)

Results:

  1. rendering results on validation set seems not correct, since the color has some green

image

  1. but the metrics seems resonable as this screenshot shows:

image

Questions:

I wonder the cause of such unexpected rendering results.Is it caused by my command or anything else?

@YiftachEde
Copy link

Have you solved this issue? it happens all the same using gnt_full model as a checkpoint model.

@leo-frank
Copy link
Author

No, I can't solve it. I tried 3 types of model:

  1. single-scene model provided by author
  2. cross-scene model provided by author
  3. single-scene model trained by myself
    all of these have the same issues.

@alaneze123
Copy link

Hi, have you solved this problem?

@lan-creator
Copy link

It also happened to me. You can check the RGB value range here:

GNT/eval.py

Lines 187 to 189 in 53e0fc3

rgb_coarse = rgb_coarse.permute(1, 2, 0).detach().cpu().numpy()
filename = os.path.join(out_folder, prefix[:-1] + "_{:03d}_coarse.png".format(global_step))
imageio.imwrite(filename, rgb_coarse)

In the original code, there is no value range changed as the rgb_coarse may have a distribution between around [0, 1] and you need to change it to [0, 255] and clip outliers. There is function in utils and we can directly use:

GNT/utils.py

Line 28 in 53e0fc3

to8b = lambda x: (255 * np.clip(x, 0, 1)).astype(np.uint8)

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

4 participants