garbage_classify icon indicating copy to clipboard operation
garbage_classify copied to clipboard

作者你好,在save_pb的运行里,h5文件存在也会报错,不存在也会报错,这是为什么

Open poopit opened this issue 6 years ago • 2 comments

我看了run.py的freeze_weight_path那段代码,没明白这段代码的意思 if not os.path.exists(FLAGS.freeze_weights_file_path): raise Exception('FLAGS.freeze_weights_file_path: %s is not exist' % FLAGS.freeze_weights_file_path) if os.path.isdir(FLAGS.freeze_weights_file_path): raise Exception('FLAGS.freeze_weights_file_path must be a file path, not a directory, %s ' % FLAGS.freeze_weights_file_path) if os.path.exists(FLAGS.freeze_weights_file_path.rsplit('/', 1)[0] + '/model'): raise Exception('a model directory is already exist in ' + FLAGS.freeze_weights_file_path.rsplit('/', 1)[0] + ', please rename or remove the model directory ')

poopit avatar Oct 16 '19 15:10 poopit

我试着把第三段if注释掉以后运行,发现会有model文件夹重名的错误,后面我又把原来的model文件夹重命名成model1,save_pb就运行成功了

poopit avatar Oct 16 '19 15:10 poopit

@poopit 好的呢 之前我没有遇到这种问题,解决啦就好啦!

wusaifei avatar Oct 23 '19 02:10 wusaifei