mxfont icon indicating copy to clipboard operation
mxfont copied to clipboard

font_indice font_indice

Open jingmingtao opened this issue 1 year ago • 3 comments

Excuse me, Where are font_indice, font_indice parameter passed from discriminator.py and what does it mean

jingmingtao avatar Nov 09 '23 06:11 jingmingtao

class CustomDiscriminator(nn.Module): """ spectral norm + ResBlock + Multi-task Discriminator (No patchGAN) """ def init(self, feats, gap, projD): super().init() self.feats = feats self.gap = gap self.projD = projD def forward(self, x, font_indice, char_indice, out_feats='none'): assert out_feats in {'none', 'all'} feats = [] for layer in self.feats: x = layer(x) feats.append(x)

    x = self.gap(x)  # final features
    ret = self.projD(x, font_indice, char_indice)

jingmingtao avatar Nov 09 '23 06:11 jingmingtao

It is the label of font style, which is used for computing the adversarial loss. You can find the detailed explanation of the adversarial loss in Appendix B.4 of our paper.

8uos avatar Nov 09 '23 07:11 8uos

thanks very much ! another question:The training set consists of content and style, with 6763 characters for content and 556 characters for style. May I ask if this dataset combination is reasonable

jingmingtao avatar Nov 09 '23 10:11 jingmingtao