KhoaHTD commited on
Commit
2a00d02
·
verified ·
1 Parent(s): 9bda000

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -1
README.md CHANGED
@@ -5,4 +5,65 @@ license: mit
5
  # FW-GAN
6
 
7
  **FW-GAN** is a frequency-aware, one-shot handwriting synthesis framework designed to produce realistic and writer-consistent handwritten text from a single reference public at [Expert Systems with Applications](https://www.sciencedirect.com/science/article/pii/S095741742503790X)
8
- Training code is released on [GitHub](https://github.com/DAIR-Group/FW-GAN).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  # FW-GAN
6
 
7
  **FW-GAN** is a frequency-aware, one-shot handwriting synthesis framework designed to produce realistic and writer-consistent handwritten text from a single reference public at [Expert Systems with Applications](https://www.sciencedirect.com/science/article/pii/S095741742503790X)
8
+ Training code is released on [GitHub](https://github.com/DAIR-Group/FW-GAN).
9
+
10
+ **[FW-GAN: Frequency-Driven Handwriting Synthesis with Wave-Modulated MLP Generator](https://www.sciencedirect.com/science/article/pii/S095741742503790X)**
11
+ Huynh Tong Dang Khoa, Dang Hoai Nam, Vo Nguyen Le Duy
12
+
13
+ ![test](https://github.com/DAIR-Group/FW-GAN/blob/main/docs/architecture.png?raw=true#)
14
+
15
+ ## Installation
16
+
17
+ ```console
18
+ conda create --name fwgan python=3.10
19
+ conda activate fwgan
20
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126
21
+ git clone https://github.com/DAIR-Group/FW-GAN.git && cd FW-GAN
22
+ pip install -r requirements.txt
23
+ ```
24
+
25
+ We provide our pretrained model weights and datasets here. For training, please download the files the files `train.hdf5` and `test.hdf5` and place them into the `data` folder. For quick evaluation, you can also download the pretrained model `FW-GAN.pth` and place it under `/data/weights/FW-GAN.pth` on the code released on [GitHub](https://github.com/DAIR-Group/FW-GAN).
26
+
27
+ ## Training
28
+
29
+ ```console
30
+ python train.py --config ./configs/fw_gan_iam.yml
31
+ ```
32
+
33
+
34
+ ## Generate Handwtitten Text Images
35
+
36
+ To generate all samples for FID evaluation you can use the following script:
37
+
38
+ ```console
39
+ python generate.py --config ./configs/fw_gan_iam.yml
40
+ ```
41
+
42
+ ## Handwriting synthesis and reconstruction results on IAM dataset
43
+
44
+ ![test](https://github.com/DAIR-Group/FW-GAN/blob/main/docs/Visualization_gen.png?raw=true#)
45
+
46
+ ![test](https://github.com/DAIR-Group/FW-GAN/blob/main/docs/Visualization_reconstruction.png?raw=true#)
47
+
48
+ ## Handwriting synthesis on HANDS-VNOnDB dataset
49
+ ![test](https://github.com/DAIR-Group/FW-GAN/blob/main/docs/Visualization_Vietnamese.png?raw=true#)
50
+
51
+ ### Implementation details
52
+ This work is partially based on the code released for [HiGAN](https://github.com/ganji15/HiGAN)
53
+
54
+ ## Citation
55
+ If you find this work useful, please cite our paper:
56
+
57
+ ```bibtex
58
+ @article{TONGDANGKHOA2026130175,
59
+ title = {FW-GAN: Frequency-driven handwriting synthesis with wave-modulated MLP generator},
60
+ journal = {Expert Systems with Applications},
61
+ volume = {299},
62
+ pages = {130175},
63
+ year = {2026},
64
+ issn = {0957-4174},
65
+ doi = {https://doi.org/10.1016/j.eswa.2025.130175},
66
+ url = {https://www.sciencedirect.com/science/article/pii/S095741742503790X},
67
+ author = {Huynh {Tong Dang Khoa} and Dang {Hoai Nam} and Vo {Nguyen Le Duy}},
68
+ keywords = {Handwritten text synthesis, Wavelet transform, One-shot learning, Vietnamese handwriting, Synthetic data, Generative adversarial networks},
69
+ }