Comments (6)
@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.
@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:
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.
@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.
@SystemErrorWang Thanks very much.
I might be wrong. the code in utils.py as follows:
I can't find the Y in the code. Does I miss something?
from white-box-cartoonization.
@Xinxiang7 they are mathematically equivalent.
from white-box-cartoonization.
@SystemErrorWang Thanks Very much for your reply!
from white-box-cartoonization.
Related Issues (20)
- Opening the Door to White Box Cartoonization HOT 1
- image[k] = (image[k]+1) * 127.5 HOT 2
- 怎么训练模型
- AttributeError: module 'network' has no attribute 'unet_generator' HOT 1
- TypeError: only size-1 arrays can be converted to Python scalars
- Questions for API integration
- 'NoneType' object has no attribute 'astype' HOT 2
- TypeError: only size-1 arrays can be converted to Python scalars
- @SystemErrorWang Nice job, but when I used my own dataset to train, It has a bug in utils.py's function simple_superpixel 'batch_out = Parallel(n_jobs=num_job)(delayed(process_slic)\
- make images more cartoonized
- Ported to TFJS and running in Browser using WebGL backend or in NodeJS with CUDA
- ModuleNotFoundError: No module named 'tensorflow.contrib'
- How to achieve an oil painting effect? HOT 1
- Questions about the material surface. I want more details when output HOT 1
- no healthy upstream
- QQ加不了? HOT 2
- Commercial Use HOT 1
- How to use it? Does it work?
- can i get an output longer than 10 sec on the web Demo ?
- Learning Curve
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from white-box-cartoonization.