show_and_tell.tensorflow icon indicating copy to clipboard operation
show_and_tell.tensorflow copied to clipboard

Hi, a suggestion of shuffling data :)

Open zchen0211 opened this issue 8 years ago • 1 comments

Hi,

A suggestion of shuffling data in train():

index = np.arange(len(feats)) np.random.shuffle(index) feats = feats[index] captions = captions[index]

These lines should be executed every time after the epoch is finished.

Welcome to more discussion of tensorflow implementation!

zchen0211 avatar May 11 '16 23:05 zchen0211

Thank you for your suggestion! I should have put shuffling code.

jazzsaxmafia avatar May 11 '16 23:05 jazzsaxmafia