Code Monkey home page Code Monkey logo

Comments (6)

SystemErrorWang avatar SystemErrorWang commented on June 24, 2024

@Xinxiang7 maybe you can try to train the model with default parameters given in the code (1e4 for tv loss, 0.1 for d_loss_blur, 1 for d_loss_gray and 2e2 for content_loss, the ratio between each terms is the save). for the selective search, we at first normalize the pixel values to (0, 1). I guess there may also be some problem in terminology (maybe 1.25 in my setting means 0.8 in your setting)

from white-box-cartoonization.

Xinxiang7 avatar Xinxiang7 commented on June 24, 2024

@SystemErrorWang Thanks a lot. I will try sooner.
I found the function of texture in the paper is different from the one in the code
In the paper:
texture_1
the code:
output1 = (b_weight * b1 + g_weight * g1 + r_weight * r1) / (b_weight + g_weight + r_weight)
Does the standard grayscale image Y is not important. So It can be removed away or some other reason?

from white-box-cartoonization.

SystemErrorWang avatar SystemErrorWang commented on June 24, 2024

@Xinxiang7 the code for random color shift is in utils.py and it strictly follows this formulation. please refer to it for details.

from white-box-cartoonization.

Xinxiang7 avatar Xinxiang7 commented on June 24, 2024

@SystemErrorWang Thanks very much.
I might be wrong. the code in utils.py as follows:
test1
I can't find the Y in the code. Does I miss something?

from white-box-cartoonization.

SystemErrorWang avatar SystemErrorWang commented on June 24, 2024

@Xinxiang7 they are mathematically equivalent.

from white-box-cartoonization.

Xinxiang7 avatar Xinxiang7 commented on June 24, 2024

@SystemErrorWang Thanks Very much for your reply!

from white-box-cartoonization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.