JinghuiZhou / awesome_face_antispoofing

Single Shot Face Anti-spoofing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An error with visdom

liuyazhou951218 opened this issue · comments

First ,thanks for your great work,it really helps me a lot.
The progress of train is OK. While try to put the result into visdom and visualize it,here is a problem:
TypeError: object of type 'Tensor' is not JSON serializable.
My Pytorch is 1.0.0, and some questions on StackOverflow tell me to change Pytorch 1.0.0 to 0.3.1, but when I tried that, it showed more problems. so give it up.
Can you give me some advice about that? thanks in advance.

me too,pytorch==1.0, how solve this problem? thx

I find that if I train it with gpu, the error happed, but if I train it with cpu, it's ok,no errors