Text2image
Text to Image Generation with Semantic-Spatial Aware GAN
Install / Use
/learn @wtliao/Text2imageREADME
text2image
This repository includes the implementation for Text to Image Generation with Semantic-Spatial Aware GAN
Network Structure

The structure of the spatial-semantic aware (SSA) block is shown as below

Main Requirements
- python 3.6+
- pytorch 1.0+
- numpy
- matplotlib
- opencv
Prepare data
- Download the preprocessed metadata for birds and coco and save them to
data/ - Download birds dataset and extract the images to
data/birds/ - Download coco dataset and extract the images to
data/coco/
Pre-trained DAMSM model
- Download the pre-trained DAMSM for CUB and save it to
DAMSMencoders/ - Download the pre-trained DAMSM for coco and save it to
DAMSMencoders/
Trained model
you can download our trained models from our onedrive repo
Start training
Run main.py file. Please adjust args in the file as your need.
Evaluation
please run IS.py and test_lpips.py (remember to change the image path) to evaluate the IS and diversity scores, respectively.
For evaluating the FID score, please use this repo https://github.com/bioinf-jku/TTUR.
Performance
You will get the scores close to below after training under xe loss for xxxxx epochs:

Qualitative Results
Some qualitative results on coco and birds dataset from different methods are shown as follows:

The predicted mask maps on different stages are shown as as follows:

Reference
If you find this repo helpful in your research, please consider citing our paper:
@article{liao2021text,
title={Text to Image Generation with Semantic-Spatial Aware GAN},
author={Liao, Wentong and Hu, Kai and Yang, Michael Ying and Rosenhahn, Bodo},
journal={arXiv preprint arXiv:2104.00567},
year={2021}
}
The code is released for academic research use only. For commercial use, please contact Wentong Liao.
Acknowledgements
This implementation borrows part of the code from DF-GAN.
Related Skills
qqbot-channel
349.0kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
