Skip to content

A question about "l1 loss" between pred outcome and all one tensor in trainer #1

@YoungQuasimodo

Description

@YoungQuasimodo

For code in shading_controlnet_trainer.py,line 247reg_loss = torch.nn.functional.l1_loss(pred_mult_layer, torch.ones_like(pred_mult_layer)) reg_loss += torch.nn.functional.l1_loss(pred_div_layer, torch.ones_like(pred_div_layer))
why calculating L1 loss between pred outcome and all one tensor, is it to minimize over-exposure artifacts?
Ant it would be greatly appreciated if you could make the dataset and inference code available

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