@dieterichlawson
I run the code to update the dataset pianoRolls/jsb.pkl with the media:
python data/calculate_pianoroll_mean.py --in_file=$PIANOROLL_DIR/jsb.pkl
Then I run the main code and got an error with the UTF, I fixed it by adding 'rb' when opening the files to load. Now I'm getting this error:
(tf_py3) gissella@huascaran:~/Documents/Research/Semantic/tensorflows_models/research/fivo$ ./bin/run_train.sh
Traceback (most recent call last):
File "run_fivo.py", line 142, in <module>
tf.app.run(main)
File "/home/gissella/anaconda2/envs/tf_py3/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "run_fivo.py", line 130, in main
runners.run_train(FLAGS)
File "/home/gissella/Documents/Research/Semantic/tensorflows_models/research/fivo/fivo/runners.py", line 232, in run_train
bound, train_op, global_step = create_graph()
File "/home/gissella/Documents/Research/Semantic/tensorflows_models/research/fivo/fivo/runners.py", line 222, in create_graph
bound, loss = create_loss()
File "/home/gissella/Documents/Research/Semantic/tensorflows_models/research/fivo/fivo/runners.py", line 205, in create_loss
parallel_iterations=config.parallel_iterations
File "/home/gissella/Documents/Research/Semantic/tensorflows_models/research/fivo/fivo/bounds.py", line 157, in fivo
observations = nested.tile_tensors(observations, [1, num_samples])
File "/home/gissella/Documents/Research/Semantic/tensorflows_models/research/fivo/fivo/nested_utils.py", line 68, in tile_tensors
return map_nested(tile_fn, tensors)
File "/home/gissella/Documents/Research/Semantic/tensorflows_models/research/fivo/fivo/nested_utils.py", line 45, in map_nested
return nest.pack_sequence_as(nested, out)
File "/home/gissella/anaconda2/envs/tf_py3/lib/python3.5/site-packages/tensorflow/python/util/nest.py", line 306, in pack_sequence_as
raise TypeError("flat_sequence must be a sequence")
TypeError: flat_sequence must be a sequence
It seems like it was just a problem of my python and tensorflow installartion. This works in python2.7 and I was using 3.6. It would be great that the README provides some more info about the versions needed.
so how to deal with this problem ? I
Most helpful comment
It seems like it was just a problem of my python and tensorflow installartion. This works in python2.7 and I was using 3.6. It would be great that the README provides some more info about the versions needed.