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

how to generate checkpoint file for noise sampling model #24

Open
ClaytonXia opened this issue Nov 13, 2018 · 2 comments
Open

how to generate checkpoint file for noise sampling model #24

ClaytonXia opened this issue Nov 13, 2018 · 2 comments

Comments

@ClaytonXia
Copy link

i have downloaded the noise sampling model but no checkpoint file found, could you tell how to generate one with detail? thanks

@inhoc
Copy link

inhoc commented Apr 28, 2019

unzip the file and place it to checkpoint dir.
Then modify config.py.

class directories:
checkpoints = 'checkpoints/noiseMScsC8'
latest_filename = 'noiseMScsC8_epoch15.ckpt-15.index'

and
replace the code such as (compress.py) from
ckpt = tf.train.get_checkpoint_state(directories.checkpoints)
to
ckpt = tf.train.get_checkpoint_state(directories.checkpoints,
latest_filename=directories.latest_filename)

it will load.
But TF 1.3, 1.8 and 1.13 I get an error utf-8 loading error.

@18829288698
Copy link

18829288698 commented May 18, 2020

Hi teacher, I have a question,replace ckpt = tf.train.get_checkpoint_state (directories.checkpoints) with ckpt = tf.train.get_checkpoint_state (directories.checkpoints, Latest_filename = directories.Latest_filename) will report an error TypeError: get_checkpoint_state () got an unexpected keyword argument 'Latest_filename', do you know how to solve it?

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

3 participants