Skip to content

question~ #1

Description

@CXSunshine

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions