Comments (3)
At the beginning of codebook training, the codebook usage is low. So we need to use offline KMeans to re-initialize its codebook items. If you want to speed up this function, you may set (n_init=1) in the KMeans algorithm. And the origin setting in sklearn is n_init=10, which means the KMeans will repeat 10 times.
cluster.k_means(encodings, num_clusters, n_init=1)
from vqfr.
Thank you for your explaination. I am new to VQGAN, and I am curious about if this trick is a common operation for codebook training or this is first proposed by your team. Thank you!
from vqfr.
It is not our contribution, you can refer to "robust training of vector quantized bottleneck models" for details.
from vqfr.
Related Issues (20)
- about vqfr2: HOT 1
- About how to get the validation dataset? HOT 1
- Can VQFR2 be placed in google drive too? HOT 1
- 4090 not worked... only CPU mode?
- config file for vqfr_v2 HOT 3
- Hi, training issue, "No object named 'VQFRModel' found in 'model' registry". HOT 2
- Unstable video effects HOT 3
- requirements.txt installs numpy>=1.21 citing numba, numba setup asks for numpy >= 1.21
- VQFR_v2 model not in Google Drive HOT 1
- 您好 v2版本的模型在哪呢,网盘里目前只有v1版本的么? HOT 1
- missed VQFR_v2.pth HOT 1
- TypeError: __init__() got an unexpected keyword argument 'in_dim' HOT 1
- How to convert model to onnx?
- In the whole process of training VQGAN, the PSNR was only 20
- Failed inference for VQFR: CUDA error: CUBLAS_STATUS_NOT_SUPPORTED when calling `cublasSgemmStridedBatched...
- 关于FFHQ训练集 HOT 3
- 关于option:Linux
- 训练报错
- vqfrv1训练效果不好
- How to train FFHQ on 1024x1024 resolution?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vqfr.