ubuntu20.04でmagentaのmelody_rnn_create_datasetを実行ときに以下のエラーが出てうまく実行できないので解決策を教えてください。
実行したコマンド
melody_rnn_create_dataset \ > --config= attention_rnn \ > --input= /home/tomsierra/デスクトップ/noteseq/notesequences.tfrecord \ > --output_dir= /home/tomsierra/デスクトップ/output/melody_rnn/sequence_examples \ > --eval_ratio= 0.2
結果
absl.flags._exceptions.IllegalFlagValueError: flag --eval_ratio=: could not convert string to float: ''
結果(全文)
2022-01-09 22:52:28.235629: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2022-01-09 22:52:28.235649: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. /home/tomsierra/.local/lib/python3.8/site-packages/librosa/util/decorators.py:9: NumbaDeprecationWarning: An import was requested from a module that has moved location. Import requested from: 'numba.decorators', please update to use 'numba.core.decorators' or pin to Numba version 0.48.0. This alias will not be present in Numba version 0.50.0. from numba.decorators import jit as optional_jit /home/tomsierra/.local/lib/python3.8/site-packages/librosa/util/decorators.py:9: NumbaDeprecationWarning: An import was requested from a module that has moved location. Import of 'jit' requested from: 'numba.decorators', please update to use 'numba.core.decorators' or pin to Numba version 0.48.0. This alias will not be present in Numba version 0.50.0. from numba.decorators import jit as optional_jit /home/tomsierra/.local/lib/python3.8/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning) WARNING:tensorflow:From /home/tomsierra/.local/lib/python3.8/site-packages/tensorflow/python/compat/v2_compat.py:111: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term Traceback (most recent call last): File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_flag.py", line 181, in _parse return self.parser.parse(argument) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_argument_parser.py", line 171, in parse val = self.convert(argument) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_argument_parser.py", line 232, in convert return float(argument) ValueError: could not convert string to float: '' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/tomsierra/.local/bin/melody_rnn_create_dataset", line 8, in <module> sys.exit(console_entry_point()) File "/home/tomsierra/.local/lib/python3.8/site-packages/magenta/models/melody_rnn/melody_rnn_create_dataset.py", line 64, in console_entry_point tf.app.run(main) File "/home/tomsierra/.local/lib/python3.8/site-packages/tensorflow/python/platform/app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/app.py", line 304, in run args = _run_init( File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/app.py", line 373, in _run_init args = _register_and_parse_flags_with_usage( File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/app.py", line 220, in _register_and_parse_flags_with_usage args_to_main = flags_parser(original_argv) File "/home/tomsierra/.local/lib/python3.8/site-packages/tensorflow/python/platform/app.py", line 31, in _parse_flags_tolerate_undef return flags.FLAGS(_sys.argv if argv is None else argv, known_only=True) File "/home/tomsierra/.local/lib/python3.8/site-packages/tensorflow/python/platform/flags.py", line 113, in __call__ return self.__dict__['__wrapped'].__call__(*args, **kwargs) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_flagvalues.py", line 663, in __call__ unknown_flags, unparsed_args = self._parse_args(args, known_only) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_flagvalues.py", line 812, in _parse_args flag.parse(value) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_flag.py", line 166, in parse self.value = self._parse(argument) File "/home/tomsierra/.local/lib/python3.8/site-packages/absl/flags/_flag.py", line 183, in _parse raise _exceptions.IllegalFlagValueError( absl.flags._exceptions.IllegalFlagValueError: flag --eval_ratio=: could not convert string to float: ''
= と値の間にスペースを入れていますが、入れないで実行してみて下さい。
melody_rnn_create_dataset \
> --config=attention_rnn \
> --input=/home/tomsierra/デスクトップ/noteseq/notesequences.tfrecord \
> --output_dir=/home/tomsierra/デスクトップ/output/melody_rnn/sequence_examples \
> --eval_ratio=0.2
スペースを入れないで実行したらできました。本当にありがとうございました。
自己回答として投稿してみて下さい(ご自身の回答をベストアンサーとすることができます)。
回答1件
あなたの回答
tips
プレビュー