cmusphinx / g2p-seq2seq

G2P with Tensorflow
Other
667 stars 196 forks source link

TypeError: __init__() got an unexpected keyword argument 'warm_start_from' #203

Closed skjohnkwon closed 11 months ago

skjohnkwon commented 11 months ago
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing top-level names to g2p_seq2seq.egg-info\top_level.txt
writing dependency_links to g2p_seq2seq.egg-info\dependency_links.txt
writing requirements to g2p_seq2seq.egg-info\requires.txt
writing g2p_seq2seq.egg-info\PKG-INFO
writing entry points to g2p_seq2seq.egg-info\entry_points.txt
reading manifest file 'g2p_seq2seq.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'g2p_seq2seq.egg-info\SOURCES.txt'
running build_ext
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\framework\dtypes.py:493: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\framework\dtypes.py:494: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\framework\dtypes.py:495: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\framework\dtypes.py:496: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\framework\dtypes.py:497: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\framework\dtypes.py:502: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
test_decode (tests.g2p_unittest.TestG2P) ... i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p_trainer_utils.py:253: ResourceWarning: unclosed file <_io.TextIOWrapper name='I:\\projects\\speechmentortest\\poc_ipa_to_eng\\g2p\\g2p-seq2seq\\tests\\models\\decode\\model.params' mode='r' encoding='cp1252'>
  model_params = json.load(open(params_file_path))
C:\Users\john\.conda\envs\python356\lib\site-packages\tensorflow\python\platform\tf_logging.py:114: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  _get_logger().warn(msg, *args, **kwargs)
WARNING:tensorflow:Schedule=continuous_train_and_eval. Assuming that training is running on a single machine.
ERROR
test_evaluate (tests.g2p_unittest.TestG2P) ... WARNING:tensorflow:Schedule=continuous_train_and_eval. Assuming that training is running on a single machine.
ERROR
test_train (tests.g2p_unittest.TestG2P) ... WARNING:tensorflow:Schedule=continuous_train_and_eval. Assuming that training is running on a single machine.
ERROR

======================================================================
ERROR: test_decode (tests.g2p_unittest.TestG2P)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\tests\g2p_unittest.py", line 34, in test_decode
    g2p_model = G2PModel(params, test_path=decode_file_path)
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p.py", line 90, in __init__
    self.__prepare_model()
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p.py", line 114, in __prepare_model
    use_tpu=False)
  File "C:\Users\john\.conda\envs\python356\lib\site-packages\tensor2tensor\utils\trainer_lib.py", line 237, in create_estimator
    warm_start_from=run_config.warm_start_from
TypeError: __init__() got an unexpected keyword argument 'warm_start_from'

======================================================================
ERROR: test_evaluate (tests.g2p_unittest.TestG2P)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\tests\g2p_unittest.py", line 47, in test_evaluate
    g2p_model = G2PModel(params, test_path=gt_path)
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p.py", line 90, in __init__
    self.__prepare_model()
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p.py", line 114, in __prepare_model
    use_tpu=False)
  File "C:\Users\john\.conda\envs\python356\lib\site-packages\tensor2tensor\utils\trainer_lib.py", line 237, in create_estimator
    warm_start_from=run_config.warm_start_from
TypeError: __init__() got an unexpected keyword argument 'warm_start_from'

======================================================================
ERROR: test_train (tests.g2p_unittest.TestG2P)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\tests\g2p_unittest.py", line 23, in test_train
    test_path=dev_path)
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p.py", line 78, in __init__
    self.__prepare_model(train_mode=True)
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p.py", line 106, in __prepare_model
    self.exp = exp_fn(trainer_run_config, hparams)
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p_trainer_utils.py", line 79, in experiment_fn
    return create_experiment(run_config, hparams, *args, **kwargs)
  File "i:\projects\speechmentortest\poc_ipa_to_eng\g2p\g2p-seq2seq\g2p_seq2seq\g2p_trainer_utils.py", line 122, in create_experiment
    use_tpu=use_tpu)
  File "C:\Users\john\.conda\envs\python356\lib\site-packages\tensor2tensor\utils\trainer_lib.py", line 237, in create_estimator
    warm_start_from=run_config.warm_start_from
TypeError: __init__() got an unexpected keyword argument 'warm_start_from'

----------------------------------------------------------------------
Ran 3 tests in 0.008s

FAILED (errors=3)
Test failed: <unittest.runner.TextTestResult run=3 errors=3 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=3 errors=3 failures=0>

tensorflow v 1.5 tensor2tensor v 1.7

the versions in the readmd are outdated...

how can i fix this issue without editing the code