Skip to content

Compatibility with other models (*.pb)? Also, I found a way to use cudnn with this. #4

@Klanly

Description

@Klanly

a. Is this compatible with 1024x1024 models like these:
https://github.com/a312863063/generators-with-stylegan2
?
(It says it's StyleGAN2 though)

b. Are there hardcoded parts in the (C# and the dll) codes?

c. I saved a *.pkl model to *.pb on GoogleColab with this script:

############
import pickle
import dnnlib.tflib as tflib
import tensorflow as tf

EXPORT_PATH = "savemodel2"

tflib.init_tf()
_G, _D, Gs = pickle.load(open("xxx.pkl", "rb"))

sess = tf.get_default_session()

tf.saved_model.simple_save(
sess,
EXPORT_PATH,
inputs={t.name:t for t in Gs.input_templates},
outputs={t.name:t for t in Gs.output_templates})
############

(from http://tachibana.ai/2019/06/15/Portal-Log-One.html)

It generates a pb and a "Variables" folder (Weights not embed inside pb?), Can this kind of saved binary be loaded?

=============

Also I found that replacing tensorflow.dll with Topaz ones from
https://d2xkriaa67cpt4.cloudfront.net/packages/win/topazmask/com.topazlabs.topazmask.libs3rdparty/1.0.7topazmasklibs3rdparty.7z
can make this use cudnn:

with cudnn:
cudnn

without cudnn:
nocudnn

Any of you who has interest can try yourself. This one
https://d2xkriaa67cpt4.cloudfront.net/packages/win/topazstudio2/com.topazlabs.topazstudio2.libs3rdparty/2.1.1topazstudio2libs3rdparty.7z
(TF 1.14, no cudnn) works too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions