Skip to content

code of loss part may have some problem? #7

@ousuixin

Description

@ousuixin

hello, thank you for your excellent work and the open source code.
And I have some questions about InpaintingLoss.py:

D_loss = D_fake - D_real + gp

why not use D_loss = D_fake - D_real + gp?
if D_real = D_real.mean().sum() * -1 and D_fake = D_fake.mean().sum() * 1
I think D_loss = D_fake + D_real + gp

and line 120
GLoss = holeLoss + validAreaLoss + prcLoss + styleLoss + 0.1 * D_fake
should be
GLoss = holeLoss + validAreaLoss + prcLoss + styleLoss - 0.1 * D_fake

thank you for your reply.

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