abskj/lossy-image-compression

ZeroDivisionError: division by zero

Closed this issue · 1 comments

print('Train Loss:\t%.6f'%(total_loss*train_params['batch_size']/len(train_params['train_indices'])))

ZeroDivisionError: division by zero。

我不明白train_params['train_indices']在哪里赋值了,那么它的长度自然就是0.这个loss计算的定义是什么呢?
I don't understand train_ Where is params ['train_indices'] assigned, and its length is naturally 0. What is the definition of this loss calculation?

Because the code can only read png images, no data was read