Skip to content

question regarding preprocessed_images #1

@fzhang612

Description

@fzhang612

Hi,

Thanks for sharing this work.

Got a questing regarding this line

preprocessed_images = (preprocessed_images - drange[0]) * ((drange[1] - drange[0]) / 255) + drange[0]

I guess the purpose is to normalize reference image to [-1,1] because the discriminator requires it. The bug described in

# ("+ drange[0]" at the end is a fix of a bug in tflib.convert_images_from_uint8())
doesn't have any impact because it is the generator_output_tensor, not generated_image_tensor is fed into the discriminator, as specified in
return generator_output_tensor
. So I guess the correct way to normalize is simply preprocessed_images * ((drange[1] - drange[0]) / 255) + drange[0].

Please correct me if I miss something else.

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