Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark colors being distorted #7

Open
faiq-fabtechsol opened this issue Feb 26, 2024 · 3 comments
Open

Dark colors being distorted #7

faiq-fabtechsol opened this issue Feb 26, 2024 · 3 comments

Comments

@faiq-fabtechsol
Copy link

faiq-fabtechsol commented Feb 26, 2024

Hi Brother, thanks for the repo. I am using your repository in one of my projects, For light colors pattern is being transferred quite well but for dark colors color of object is being blurred a little, can you please tell how to solve this issue I have attached one of images that I am experimented on.
here is the input image
template
here is the mask of input image
mask
here is the style image
art11

and here is the output of this image.
art11

here you can see texture is not being transfered correctly. I want output like this.
desired_output
thanks in advance.

@kashifulhaque
Copy link
Owner

afaik, ImageMagick expects the mask to be white in colour with transparent background. Can you try this after changing mask colour to white.

Also, you can try changing parameters like scale in create_swatch_tile.py to make the tiling more/less dense.

Lastly, you can also try changing brightness delta here and in other similar scripts to adjust your output.

It is kind of difficult to create one script that works for everyone, so you just have to fiddle around with the parameters.

@faiq-fabtechsol
Copy link
Author

faiq-fabtechsol commented Feb 27, 2024

@kashifulhaque thanks for you answer after changing the mask to white and decreasing the tiling does some work for me but still output is not as good as it should be. I have also tried with the reshaping the swatches to the size almost equal to the size of object within image but still output is not as accurate.
Now my output is
output

you can see here that full pattern is still not being transferred to the output image.

@faiq-fabtechsol
Copy link
Author

also color of output image is little dull as compared to the swatch

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

No branches or pull requests

2 participants