Skip to content

KeyError: 'normal' when adaptation using 5s data #13

Description

@whitenoise-tzx

Hi, I was trying to do adaptation using 5s training data, but the bug was like:

Training progress:  50%|##########################################                                          | 5000/10000 [02:07<02:14, 37.20it/s, Loss=0.00766, Mouth=10.6-25.0]Traceback (most recent call last):
  File "InsTaG-main/train_face.py", line 450, in <module>
    training(lp.extract(args), op.extract(args), pp.extract(args), args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from, args.long, args.pretrain_path)
  File "InsTaG-main/train_face.py", line 199, in training
    loss += 0.01 * (1 - viewpoint_cam.talking_dict["normal"].cuda() * render_pkg["normal"]).sum(0)[head_mask^mouth_mask].mean()
KeyError: 'normal'

I performed 'data_utils/split.py' and set train_val_split = 25 * 5. In the adaptation script, I set n_views=-1

For all the test case that I tried, I noticed that this error only happens when training progress is 50%.

If I increase the n_views to 250, the error won't happen.

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