I am Leslie from China, nice to meet you all!
- 😄 Interst: computer vision especially Image generation
- 📫 How to reach me: send email to [email protected]
unofficial implementation of DCT-Net: Domain-Calibrated Translation for Portrait
License: MIT License
I am Leslie from China, nice to meet you all!
Are the following training results correct?
Can the CCN stage be directly adopted https://github.com/rosinality/stylegan2-pytorch?
to train, or what changes did you make in the CCN stage
In the TTN stage, do you use data pairs for p2p network model training? Data pairs are necessary?
Hi @LeslieZhoa, thanks for your implementation.
I tried running the inference.py script and I faced some problems.
I fixed the 'netG' key in the line:
Line 25 in ebdc7bd
Also in the postprocess method you make the slice [..., ::-1], and you also make it after calling the run method:
Line 55 in ebdc7bd
I removed the extra slice.
But I still get an unrealistic image (ran at 1024 and 256 resolutions). I'm attaching an example (first line is 1024, second line is 256) and waiting for a response/comment.
b1, g1, r1 = torch.split(image, 1, dim=1) 应该是 r1,g1,b1
Hi @LeslieZhoa ! How can you compare the dictionary and the float?
DCT-NET.Pytorch/trainer/ModelTrainer.py
Line 124 in b303f41
This method is called here:
DCT-NET.Pytorch/trainer/ModelTrainer.py
Line 96 in b303f41
But the val_loss obtained in CCNTrainer.evalution is an empty dictionary:
DCT-NET.Pytorch/trainer/CCNTrainer.py
Lines 196 to 206 in b303f41
I want to understand how to fix this and what metrics to count? And as I understand it, you trained the network without early_stopping. How many epochs/iterations did it take?
生成人脸都比较好,就是处理整图背景表现出有一块一块的黑色的
非常感谢作者伟大的工作,我尝试用ttn代码训练(ccn,face expression estimator等都没发现啥问题),大概训练了50epoch,但是效果不太理想。是训练时间过短还是有其他原因。
What is the image size used for training CCN,
Why can't the matrix be multiplied when I input 1024 in training,
and The problem of ' 'Nan or Inf found in input tensor '' when inputting 256 during training
可以跑训练了,取消issues
十分感谢你的贡献,但我有几个问题想要咨询一下。
我发现你在训练ccn的时候没有做论文中提到的blend操作,Geometry expansion module我也没有找到,这是有什么原因吗?
另外论文作者提到他用相同的模型对头部和背景进行了两次推理,只是对头部模型进行了额外的优化,但在你复现中似乎只有一个模型并且只做了一次推理,是有什么改动吗?
另外show中展示的效果似乎不是很好,有更好的效果图可以分享一下吗?谢谢
thanks. a nice work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.