Skip to content

Input normalization range for DynamiCrafter #4

@tokki8682

Description

@tokki8682

In DynamiCrafter, I understand that the model expects input images to be normalized to [-1, 1], which is common for diffusion models.
However, in the released code, the [0, 1] → [-1, 1] normalization seems to be commented out:

<enhancer_utils.py>

transform = transforms.Compose([
    transforms.Resize((self.height, self.width)),  # skip centercrop
    # transforms.ToTensor(),
    # transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
])

Could you clarify the intended input range for the model, and why the [-1, 1] normalization is commented out in the public code?

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