Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

한국어 condition 변수 만드는 법 #26

Open
internationalwe opened this issue Sep 8, 2023 · 0 comments
Open

한국어 condition 변수 만드는 법 #26

internationalwe opened this issue Sep 8, 2023 · 0 comments

Comments

@internationalwe
Copy link
Collaborator

internationalwe commented Sep 8, 2023

Condition consists of labels, strokes, style.

Labels are created with a size of (batch, 100) through embedding,
Strokes are counted based on their frequencies for initial, medial, and final strokes.

For the style, after the style encoder, the resulting vector has a dimension of 32,768 when flattened. Therefore, there is a need to compress the output into a smaller size, and three methods have been tried:

  1. Using nn.linear to reduce it to a size of (batch, 128).
  2. Utilizing nn.conv2d, maintaining the channel dimensions while setting the kernel size to be the same as the height and width, performing convolution operations to obtain a size of (batch, 128, 1, 1) and flattened to (batch, 128).
  3. Using adaptive_avg_pool2d for global average pooling, resulting in a size of (batch, 128, 1, 1) and flattened to (batch, 128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant