Skip to content

fix: take multiple style reference images from one_style.json#29

Open
pinkfloat wants to merge 1 commit into
zideliu:mainfrom
pinkfloat:fix/silently-ignores-multiple-images-in-one-style-json
Open

fix: take multiple style reference images from one_style.json#29
pinkfloat wants to merge 1 commit into
zideliu:mainfrom
pinkfloat:fix/silently-ignores-multiple-images-in-one-style-json

Conversation

@pinkfloat

@pinkfloat pinkfloat commented Jul 23, 2026

Copy link
Copy Markdown

Hi, hope I don't bother you.

I was using your cool implementation for a recent university project of mine where I compare a few style-adjustment architectures - anyways.

At some point I noticed, that I was getting the exact same training results for putting only one description into one_style.json - like this:

"Graffiti/00.jpg":["An open mouth with tongue", "in graffiti style"]

or multiple - as long as the first image was the same - like this:

    "Graffiti/00.jpg":["An open mouth with tongue", "in graffiti style"],
    "Graffiti/01.jpg":["Love Peace Joy written", "in graffiti style"],

And I kinda noticed that late ... like: At my twentieth trainings-run or so. At this point I already had started to believe that the model always tends to over-fit on specific textures and the results simply never get as good for me as in the provided examples.

Which kinda makes sense, if I always overfit on exactly one training image - my first. Because all the other listed images in one_style.json are silently ignored. So ... changing these lines helped me to (finally!) get good results at the end. And this fix is kinda not very obvious.

So maybe you think about it.

Cheers~

The previous reference to index 0 took only the first style reference
listed in one_style.json to train on it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant