jtkim-kaist / Speech-enhancement

Deep neural network based speech enhancement toolkit
GNU General Public License v2.0
210 stars 63 forks source link

TypeError: get_checkpoint_state() missing 1 required positional argument: 'checkpoint_dir' #15

Open MayMiao0923 opened 5 years ago

MayMiao0923 commented 5 years ago

when i run the train.py, i got the following error.

Traceback (most recent call last): File "E:\pycharm\PyCharm 2018.3\helpers\pydev\pydevd.py", line 1689, in main() File "E:\pycharm\PyCharm 2018.3\helpers\pydev\pydevd.py", line 1683, in main globals = debugger.run(setup['file'], None, None, is_module) File "E:\pycharm\PyCharm 2018.3\helpers\pydev\pydevd.py", line 1083, in run pydev_imports.execfile(file, globals, locals) # execute the script File "E:\pycharm\PyCharm 2018.3\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "F:/Speech-enhancement/SpeechEnhancement/Speech-enhancement/SE/lib/train.py", line 378, in main() File "F:/Speech-enhancement/SpeechEnhancement/Speech-enhancement/SE/lib/train.py", line 304, in main ckpt = tf.train.get_checkpoint_state() TypeError: get_checkpoint_state() missing 1 required positional argument: 'checkpoint_dir'

And I saw a similar question on this website https://stackoverflow.com/questions/19034714/pygame-typeerror-missing-1-required-positional-argument . Is the method mentioned in it used to solve my problem is feasible?

MayMiao0923 commented 5 years ago

@jtkim-kaist

ucasiggcas commented 5 years ago

分开跑的?不是main.py ?

MayMiao0923 commented 5 years ago

我用了train.py和main.py 都跑了都出现了上面这个问题,然后我现在在train.py 中233行的 ckpt = tf.train.get_checkpoint_state() 中进行了修改 ckpt = tf.train.get_checkpoint_state('./model/') 现在出现的是MemoryError 我不知道我这个做法是不是正确的 我在网上看到有人是这么做的 @ucasiggcas

ucasiggcas commented 5 years ago

你训练完了??你的loss如何?

MayMiao0923 commented 5 years ago

我正在调Python代码 我在运行程序的 时候 报了下面的错误
如果我将feat定义为全局变量 那么 出现的是 feat is not defind

---Original--- From: "Lychee Tsu"notifications@github.com Date: Fri, Jun 28, 2019 11:58 AM To: "jtkim-kaist/Speech-enhancement"Speech-enhancement@noreply.github.com; Cc: "State change"state_change@noreply.github.com;"MayMiao0923"763570568@qq.com; Subject: Re: [jtkim-kaist/Speech-enhancement] TypeError: get_checkpoint_state() missing 1 required positional argument: 'checkpoint_dir' (#15)

你训练完了??你的loss如何?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.