deeptype icon indicating copy to clipboard operation
deeptype copied to clipboard

train_type error

Open ghost opened this issue 6 years ago • 4 comments

I am having an issue with the training, even running the examplepython3 learning/train_type.py learning/test/config.json give me the following error: File "learning/train_type.py", line 2690, in main() File "learning/train_type.py", line 2623, in main create_variables=True) File "learning/train_type.py", line 1775, in init clip_norm=self.clip_norm) File "learning/train_type.py", line 1467, in build_model is_training=is_training) File "learning/train_type.py", line 1020, in build_recurrent direction="bidirectional") TypeError: init() got multiple values for argument 'input_mode' Any idea what might be causing this? Thanks!

ghost avatar Jul 11 '18 20:07 ghost

Hi, I am getting the exact same error, after following all the steps, generating my evolved type output and creating the learning config file. I get the following error:

Traceback (most recent call last):
  File "learning/train_type.py", line 2690, in <module>
    main()
  File "learning/train_type.py", line 2623, in main
    create_variables=True)
  File "learning/train_type.py", line 1775, in __init__
    clip_norm=self.clip_norm)
  File "learning/train_type.py", line 1467, in build_model
    is_training=is_training)
  File "learning/train_type.py", line 1020, in build_recurrent
    direction="bidirectional")
TypeError: __init__() got multiple values for argument 'input_mode'

Any ideas? Thanks.

abhimanu avatar Feb 06 '19 22:02 abhimanu

From what I understand this is caused by a tensor flow version mismatch. tf 1.4 vs 1.12 or newer. input_mode argument's position was changed in the newest version

JonathanRaiman avatar Feb 25 '19 19:02 JonathanRaiman

@JonathanRaiman Neither 1.4 or 1.12 is working. Can you please tell us which version of the tensorflow need to be installed.

Thanks

amandalmia14 avatar May 22 '19 08:05 amandalmia14

I solved the problem by installing the tensorflow-gpu==1.4.0

pip install tensorflow-gpu==1.4.0

For that version (according to https://www.tensorflow.org/install/source#tested_build_configurations) you need CUDA v8, which can be downloaded from:

https://developer.nvidia.com/cuda-toolkit-archive

The last thing that I needed to install was cuDNN v6.0. You can find it at

https://developer.nvidia.com/rdp/cudnn-archive

and install it according to these instructions:

https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html

mdocekal avatar Aug 28 '19 21:08 mdocekal