Skip to content

Add a section about how training data resizing might affect the quality of the end models #6397

Closed

Description

@sayakpaul

Have been chatting with @bghira on our Discord forum about the negative effects of not carefully resizing the training data.

@bghira noticed that the way we resize the images in our training examples can introduce unwanted artifacts in the samples generated by the end fine-tuned model. In short, it ruins the fidelity of the generated samples.

We don't want to make the data input pipelines in our training examples super sophisticated, guaranteeing SoTA results. But that said, I think it's best in the community's interest if we made a note about this phenomenon in the READMEs and just added a comment about it in the pipelines.

Curious to know what @patil-suraj @apolinario think about this. Personally, I think it makes sense.

I will let @bghira share some more insights as well.

Activity

  1. github-actions commented on Jan 29, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  2. sayakpaul commented on Jan 29, 2024

    @sayakpaul
    MemberAuthor

    Not stale.

  3. removed
    staleIssues that haven't received updates
    on Feb 20, 2024
  4. github-actions commented on Mar 16, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  5. removed
    staleIssues that haven't received updates
    on Mar 19, 2024
  6. github-actions commented on Apr 13, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  7. removed
    staleIssues that haven't received updates
    on Nov 22, 2024
  8. github-actions commented on Dec 16, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  9. removed
    staleIssues that haven't received updates
    on Dec 16, 2024
  10. github-actions commented on Jan 10, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  11. 8 remaining items

  12. removed
    staleIssues that haven't received updates
    on Feb 4, 2025
  13. github-actions commented on Mar 1, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  14. removed
    staleIssues that haven't received updates
    on Mar 1, 2025
  15. crapthings commented on Mar 2, 2025

    @crapthings

    What do the 'unwanted artifacts' look like?

  16. github-actions commented on Mar 26, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  17. bghira commented on Mar 26, 2025

    @bghira
    Contributor

    @crapthings they look like JPEG artifacts or resize artifacts, it could be something like a grid of pixelation if you use bicubic / nearest neighbour interpolation on downsample.

  18. bghira commented on Mar 26, 2025

    @bghira
    Contributor
  19. bghira commented on Mar 26, 2025

    @bghira
    Contributor

    @stevhliu maybe since you're the docs expert we can bypass process and start working on what this would look like? here's the reference from Zuru tech blog;

    Image

  20. stevhliu commented on Mar 27, 2025

    @stevhliu
    Member

    Yeah that sounds good to me. Maybe we can make a note of it in the training Overview since that is also where we introduce our training scripts.

    Would you like to open a PR for this @bghira or I can too once I've wrapped up some other things 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions