calclavia / DeepJ

A deep learning model for style-specific music generation.

Home Page:https://arxiv.org/abs/1801.00887

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help needed : Getting error TypeError: __int__ returned non-int (type NoneType) when calling train.py

swarna-a-26 opened this issue · comments

I am on MAC OS X 10.3.1
Using TensorFlow backend.
Traceback (most recent call last):
File "train.py", line 32, in
main()
File "train.py", line 15, in main
models = build_or_load()
File "/Users/swarnaananthan/storycircles/ai_music/DeepJ/util.py", line 15, in build_or_load
models = build_models()
File "/Users/swarnaananthan/storycircles/ai_music/DeepJ/model.py", line 149, in build_models
notes_out = naxis(time_out, chosen, style)
File "/Users/swarnaananthan/storycircles/ai_music/DeepJ/model.py", line 111, in f
dense_layer_cache[l] = Dense(int(x.get_shape()[3]))
TypeError: int returned non-int (type NoneType)

Please help me in fixing the issue.