-
Notifications
You must be signed in to change notification settings - Fork 3
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
ADD gfpgan #86
Comments
変換
|
tensorflow-macosのバージョンが2.12で、古く、下記でエラーが出るので、Linuxで実行した方が良い。
|
|
ai-edge-torchの方がいいかも。 |
resnet18を量子化してみるテスト
|
gfpganの変換
|
normalize
|
変換したモデルはtensorflow 2.12.0だと下記のエラーになる。
|
STABLEHLO_RNG_BIT_GENERATORが増えてる。 |
JAX向けに追加されていそう。 |
new_emptyで乱数を作っているので、これをrandに置き換えると良さそう。 |
出力を一個にする。 gfpganv1_clean_arch.py def forward(self, x, return_latents=False, return_rgb=True, randomize_noise=True, **kwargs): stylegan2_clean_arch.py STABLEHLO_RNG_BIT_GENERATORを無効にする。(これは効果がなかった) noise = out.new_empty(b, 1, h, w).normal_() |
calibrationはprepare_pt2eとconvert_pt2eの間で行う。 |
ONNX -> tflite -> quantize
https://github.com/axinc-ai/ailia-models/tree/master/generative_adversarial_networks/gfpgan
The text was updated successfully, but these errors were encountered: