CoCosNet
Pytorch Implementation of the paper ["Cross-domain Correspondence Learning for Exemplar-based Image Translation"](https://panzhang0212.github.io/CoCosNet)
Install / Use
/learn @Lotayou/CoCosNetREADME
CoCosNet
Pytorch Implementation of the paper "Cross-domain Correspondence Learning for Exemplar-based Image Translation" (CVPR 2020 oral).

Update:
20200525: Training code for deepfashion complete. Due to the memory limitations, I employed the following conversions:
- Disable the non-local layer, as the memory cost is infeasible on common hardware. If the original paper is telling the truth that the non-lacal layer works on (128-128-256) tensors, then each attention matrix would contain 128^4 elements (which takes 1GB).
- Shrink the correspondence map size from 64 to 32, leading to 4x memory save on dense correspondence matrices.
- Shrink the base number of filters from 64 to 16.
The truncated model barely fits in a 12GB GTX Titan X card, but the performance would not be the same.
Environment
- Ubuntu/CentOS
- Pytorch 1.0+
- opencv-python
- tqdm
TODO list
- [x] Prepare dataset
- [x] Implement the network
- [x] Implement the loss functions
- [x] Implement the trainer
- [x] Training on DeepFashion
- [ ] Adjust network architecture to satisfy a single 16 GB GPU.
- [ ] Training for other tasks
Dataset Preparation
DeepFashion
Just follow the routine in the PATN repo
Pretrained Model
The pretrained model for human pose transfer task: TO BE RELEASED
Training
run python train.py.
Citations
If you find this repo useful for your research, don't forget to cite the original paper:
@article{Zhang2020CrossdomainCL,
title={Cross-domain Correspondence Learning for Exemplar-based Image Translation},
author={Pan Zhang and Bo Zhang and Dong Chen and Lu Yuan and Fang Wen},
journal={ArXiv},
year={2020},
volume={abs/2004.05571}
}
Acknowledgement
TODO.
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
19.5kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
