question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some minor issues and loss=nan problem

See original GitHub issue

Hi, there!Sorry to reply you so late, I have been reading your code and running experiments recently.

But I ran into some small problems as follows,

1. When running the test code, the following code will make an error

python eval.py  \
       --dataset_name blender_ray_patch_1image_rot3d  \
       --root_dir ./synthetic_SinNeRF/lego/  \
       --N_importance 64 --img_wh 400 400 --model nerf \
       --ckpt_path ./ckpts/lego_s6_4ft/last.ckpt \
       --timestamp test

When the default value of the --split is test, an error will be reported here. note that frame https://github.com/VITA-Group/SinNeRF/blob/6f101f924fe9ba7793df5a9bbc52b2c82423e251/datasets/blender_ray_patch_1image_rot3d.py#L540


2. The dtu file you uploaded is missing a part or the code is wrong? image https://github.com/VITA-Group/SinNeRF/blob/6f101f924fe9ba7793df5a9bbc52b2c82423e251/datasets/dtu_proj.py#L433-L434


3. loss nan problem I am running the latest code on an RTX 3090, 24G, and environments are created using environment.yaml, but is still OOM, so I adjusted the patch_size, precision and --sH, --sW according to the README.

I set precision=16, and --sH, --sW remain the same(=6).

I found that the loss=nan problem will appear when the patch_size is too small, such as patch_size=8 or patch_size=16, even patch_size=32.

It works(without loss=nan) when patch_size=50, but that’s not a good number is it?

I would be grateful if you could provide advice on how to deal with this. Thank you !

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Ir1dcommented, Oct 17, 2022

@HannahHaensen For custom images, if the depth contains a lot of zeros, there are chances of nan as well. You can considering masking out the zero depth regions

1reaction
happysxppcommented, Oct 17, 2022

@HannahHaensen Hi,

I set --patch_size 56 --sW 8 --sH 8, others remain the same.

Since then, I have not continued to study this paper in depth. So I can’t offer much help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solving Minor Issues Before They Become Major Problems
Solving Minor Issues Before They Become Major Problems.
Read more >
Mild Cognitive Impairment: Symptoms, Causes, Treatments ...
Examples of memory and thinking problems that might be seen in someone with mild cognitive impairment include: Memory loss.
Read more >
Memory loss: When to seek help - Mayo Clinic
Minor head trauma or injury. A head injury from a fall or accident — even if you don't lose consciousness — can cause...
Read more >
Memory, Forgetfulness, and Aging: What's Normal and What's ...
Memory loss, though common, is not the only sign of dementia. People with dementia may also have problems with language skills, visual perception,...
Read more >
Minor problem definition and meaning - Collins Dictionary
A problem is a situation that is unsatisfactory and causes difficulties for people. [...] See full entry. Collins COBUILD Advanced Learner's Dictionary.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found