facenet icon indicating copy to clipboard operation
facenet copied to clipboard

python3 iteritems renamed to items in train_softmax.py

Open amoderate opened this issue 7 years ago • 2 comments

                print('Saving statistics')
                with h5py.File(stat_file_name, 'w') as f:
                    for key, value in stat.iteritems():
                        f.create_dataset(key, data=value)

should be

 for key, value in stat.items():

amoderate avatar Nov 18 '18 08:11 amoderate

Can confirm, I get AttributeError: 'dict' object has no attribute 'iteritems' without the change, but with the change, everything runs smoothly. Thanks for pointing this out!

Coloradohusky avatar Nov 30 '18 01:11 Coloradohusky

I have the same question. Thanks very much.

LLLL-Hui avatar Dec 28 '20 01:12 LLLL-Hui