Hello,
when I run the code,I have some touble in understanding the errors that the program generated.
Traceback (most recent call last):
File "main.py", line 33, in
main()
File "main.py", line 28, in main
model.train()
File "F:\pythonprogram\semi-supervised-GAN-master\train.py", line 132, in train
plot.flush()
File "F:\pythonprogram\semi-supervised-GAN-master\vlib\plot.py", line 37, in flush
prints.append("{}\t{}".format(name, np.mean(vals.values())))
File "C:\Users\admin\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 2957, in mean
out=out, **kwargs)
File "C:\Users\admin\Anaconda3\lib\site-packages\numpy\core_methods.py", line 82, in _mean
ret = ret / rcount
TypeError: unsupported operand type(s) for /: 'dict_values' and 'int'
Can you help me solve this problem?
Hello,
when I run the code,I have some touble in understanding the errors that the program generated.
Traceback (most recent call last):
File "main.py", line 33, in
main()
File "main.py", line 28, in main
model.train()
File "F:\pythonprogram\semi-supervised-GAN-master\train.py", line 132, in train
plot.flush()
File "F:\pythonprogram\semi-supervised-GAN-master\vlib\plot.py", line 37, in flush
prints.append("{}\t{}".format(name, np.mean(vals.values())))
File "C:\Users\admin\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 2957, in mean
out=out, **kwargs)
File "C:\Users\admin\Anaconda3\lib\site-packages\numpy\core_methods.py", line 82, in _mean
ret = ret / rcount
TypeError: unsupported operand type(s) for /: 'dict_values' and 'int'
Can you help me solve this problem?