Skip to content

Two possible bugs found when training CamP #22

Description

@lxndrrss

Hi, I have stumbled upon two problems when training CamP. I was using zipnerf/360.gin and camp/camera_optim_perturbed.gin.
The two Problems are:

  1. I got the error module 'camp_zipnerf.internal.math' has no attribute 'normalize'. I was able to fix this by changing math.normalize to spin_math.normalize here:
    perturb_dir = math.normalize(random.normal(key, camera_positions.shape))
  2. After resolving the first problem I got the error "Model" object has no attribute "grid_representation" raised here:
    if (
    model.grid_representation is None
    or model.grid_representation.lower() not in ['ngp', 'hash']
    ):
    raise ValueError('Only HashEncoding supports with coarse to fine.')
    Simply commenting out the lines fixed the issue and training worked.

Are these actually Bugs or am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions