TianzhongSong / C3D-keras

train C3D with keras for action recognition
http://www.tianzsong.xyz/2018/04/08/c3d-keras/
MIT License
119 stars 60 forks source link

local variable 'test_data' referenced before assignment #4

Closed mrojasabregu closed 5 years ago

mrojasabregu commented 6 years ago

Hi,

I tried to run your code but it shown the following error in generator_val_batch https://github.com/TianzhongSong/C3D-keras/blob/master/train_c3d.py#L138

test_data = np.transpose(test_data, (0, 2, 3, 1, 4))

UnboundLocalError: local variable 'test_data' referenced before assignment. Do you have any idea?

TianzhongSong commented 6 years ago

@mrojasabregu Oh, this is a code bug, and I have fixed it. https://github.com/TianzhongSong/C3D-keras/blob/master/train_c3d.py#L138

mrojasabregu commented 6 years ago

Great! thanks