質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Matplotlib

MatplotlibはPythonのおよび、NumPy用のグラフ描画ライブラリです。多くの場合、IPythonと連携して使われます。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

0回答

2888閲覧

よ[Python]エラーの修正:Instructions for updating: Use standard file APIs to delete files with this prefix.

Kenza

総合スコア21

Matplotlib

MatplotlibはPythonのおよび、NumPy用のグラフ描画ライブラリです。多くの場合、IPythonと連携して使われます。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2019/11/04 10:27

編集2019/11/04 10:28

wavegan

機械学習であるWAGANをターミナルで動かしました。
したところ、Instructions for updating: Use standard file APIs to delete files with this prefix.というようなエラー?が吐かれ、このコードが表示されてから数時間経ちましたが、terminalがこの表示から動きません。

何が原因でどう対処すればよろしいでしょうか?
よろしくお願い申し上げます。

また、以下のコードを打ち、train_wavegan.pyを実行した

terminal

1(tensorflow) bash-3.2$ python train_wavegan.py train ./train --data_dir ./data/dir_with_longer_audio_files --data_prefetch_gpu_num -1

エラーは以下の通りです。

error

1Found 1 audio files in specified directory 2WARNING:tensorflow:From /Users/kenthe/Desktop/new-wavegan-master/wavegan.py:65: dense (from tensorflow.python.layers.core) is deprecated and will be removed in a future version. 3Instructions for updating: 4Use keras.layers.dense instead. 5WARNING:tensorflow:From /anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. 6Instructions for updating: 7Colocations handled automatically by placer. 8WARNING:tensorflow:From /Users/kenthe/Desktop/new-wavegan-master/wavegan.py:17: conv2d_transpose (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version. 9Instructions for updating: 10Use keras.layers.conv2d_transpose instead. 11WARNING:tensorflow:From /Users/kenthe/Desktop/new-wavegan-master/loader.py:134: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version. 12Instructions for updating: 13tf.py_func is deprecated in TF V2. Instead, use 14 tf.py_function, which takes a python function which manipulates tf eager 15 tensors instead of numpy arrays. It's easy to convert a tf eager tensor to 16 an ndarray (just call tensor.numpy()) but having access to eager tensors 17 means `tf.py_function`s can use accelerators such as GPUs as well as 18 being differentiable using a gradient tape. 19 20 21WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0. 22For more information, please see: 23 * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md 24 * https://github.com/tensorflow/addons 25If you depend on functionality not listed there, please file an issue. 26 27-------------------------------------------------------------------------------- 28Generator vars 29[100, 16384] (1638400): G/z_project/dense/kernel:0 30[16384] (16384): G/z_project/dense/bias:0 31[1, 25, 512, 1024] (13107200): G/upconv_0/conv2d_transpose/kernel:0 32[512] (512): G/upconv_0/conv2d_transpose/bias:0 33[1, 25, 256, 512] (3276800): G/upconv_1/conv2d_transpose/kernel:0 34[256] (256): G/upconv_1/conv2d_transpose/bias:0 35[1, 25, 128, 256] (819200): G/upconv_2/conv2d_transpose/kernel:0 36[128] (128): G/upconv_2/conv2d_transpose/bias:0 37[1, 25, 64, 128] (204800): G/upconv_3/conv2d_transpose/kernel:0 38[64] (64): G/upconv_3/conv2d_transpose/bias:0 39[1, 25, 1, 64] (1600): G/upconv_4/conv2d_transpose/kernel:0 40[1] (1): G/upconv_4/conv2d_transpose/bias:0 41Total params: 19065345 (72.73 MB) 42WARNING:tensorflow:From /Users/kenthe/Desktop/new-wavegan-master/wavegan.py:194: conv1d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version. 43Instructions for updating: 44Use keras.layers.conv1d instead. 45-------------------------------------------------------------------------------- 46Discriminator vars 47[25, 1, 64] (1600): D/downconv_0/conv1d/kernel:0 48[64] (64): D/downconv_0/conv1d/bias:0 49[25, 64, 128] (204800): D/downconv_1/conv1d/kernel:0 50[128] (128): D/downconv_1/conv1d/bias:0 51[25, 128, 256] (819200): D/downconv_2/conv1d/kernel:0 52[256] (256): D/downconv_2/conv1d/bias:0 53[25, 256, 512] (3276800): D/downconv_3/conv1d/kernel:0 54[512] (512): D/downconv_3/conv1d/bias:0 55[25, 512, 1024] (13107200): D/downconv_4/conv1d/kernel:0 56[1024] (1024): D/downconv_4/conv1d/bias:0 57[16384, 1] (16384): D/output/dense/kernel:0 58[1] (1): D/output/dense/bias:0 59Total params: 17427969 (66.48 MB) 60-------------------------------------------------------------------------------- 61WARNING:tensorflow:From /anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. 62Instructions for updating: 63Use tf.cast instead. 642019-11-04 16:31:53.721815: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA 652019-11-04 16:31:53.722991: I tensorflow/core/common_runtime/process_util.cc:71] Creating new thread pool with default inter op setting: 8. Tune using inter_op_parallelism_threads for best performance. 66WARNING:tensorflow:From /anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/training/saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version. 67Instructions for updating: 68Use standard file APIs to check for files with this prefix. 69WARNING:tensorflow:From /anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/training/saver.py:1070: get_checkpoint_mtimes (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version. 70Instructions for updating: 71Use standard file utilities to get mtimes. 72-------------------------------------------------------------------------------- 73Training has started. Please use 'tensorboard --logdir=./train' to monitor. 742019-11-04 16:32:25.853806: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:101] Filling up shuffle buffer (this may take a while): 1231 of 4096 752019-11-04 16:32:35.842223: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:101] Filling up shuffle buffer (this may take a while): 2557 of 4096 762019-11-04 16:32:45.851625: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:101] Filling up shuffle buffer (this may take a while): 3808 of 4096 772019-11-04 16:32:48.254795: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:140] Shuffle buffer filled. 78WARNING:tensorflow:From /anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/training/saver.py:966: remove_checkpoint (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version. 79Instructions for updating: 80Use standard file APIs to delete files with this prefix.

実行環境はmacos mopjaveです

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

quickquip

2019/11/04 13:14

Training has started. と書いてあるので普通に動いているのでは?
Kenza

2019/11/05 02:38

返信ありがとうございます Instructions for updating: Use standard file APIs to delete files with this prefix. と表記されてから8時間以上経過しますが、それ以降ターミナルに何も表記されていません。 学習が進んでいるのなら、問題はないのですが、update中なのか、もしくはしっかりupadateされているのか疑問です。
quickquip

2019/11/05 02:45 編集

Please use 'tensorboard --logdir=./train' to monitor. と書いてあると思うのですが。 (回答じゃないのは、tensorboard使ったことがないので回答としての妥当性が判断できないからです)
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問