PiENet icon indicating copy to clipboard operation
PiENet copied to clipboard

saved models is not pointing to the right place on OSX

Open orasanen opened this issue 5 years ago • 0 comments

Trying to run PieNet with command

/anaconda3/bin/python3 /Users/rasaneno/Documents/koodit/dists/PiENet/generate.py /Volumes/transfer/DATA_Shortwav/wavfolder/ /Volumes/transfer/DATA_tmp/f0/' , and I get the following error:

/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) /anaconda3/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters 2020-04-23 11:10:41.396271: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA Loading model: ./saved_models/gtaug_best.ckpt Traceback (most recent call last): File "/Users/rasaneno/Documents/koodit/dists/PiENet/generate.py", line 129, in generate(fileList, target_dir, model_name) File "/Users/rasaneno/Documents/koodit/dists/PiENet/generate.py", line 53, in generate saver.restore(sess, model_file) File "/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1715, in restore if not checkpoint_exists(compat.as_text(save_path)): File "/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 2056, in checkpoint_exists if file_io.get_matching_files(pathname): File "/anaconda3/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 342, in get_matching_files for single_filename in filename File "/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 519, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: ./saved_models; No such file or directory

Manually changing the model path in generate.py fixes the problem, so maybe the ./saved_models does not point to the correct directory if you run PieNet from outside the PieNet folder?

orasanen avatar Apr 23 '20 08:04 orasanen