Traceback (most recent call last):


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1836, in __call__

return self.wsgi_app(environ, start_response)


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1820, in wsgi_app

response = self.make_response(self.handle_exception(e))


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1403, in handle_exception

reraise(exc_type, exc_value, tb)


 "E:\microblog\venv\lib\site-packages\flask\_compat.py", line 33, in reraise

raise value


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1817, in wsgi_app

response = self.full_dispatch_request()


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request

rv = self.handle_user_exception(e)


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1381, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "E:\microblog\venv\lib\site-packages\flask\_compat.py", line 33, in reraise

raise value


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request

rv = self.dispatch_request()


 "E:\microblog\venv\lib\site-packages\flask\app.py", line 1461, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "E:\microblog\app\routes.py", line 26, in login

if form.validate_on_submit():


 "E:\microblog\venv\lib\site-packages\flask_wtf\form.py", line 101, in validate_on_submit

return self.is_submitted() and self.validate()


 "E:\microblog\venv\lib\site-packages\wtforms\form.py", line 310, in validate

return super(Form, self).validate(extra)


 "E:\microblog\venv\lib\site-packages\wtforms\form.py", line 152, in validate

if not field.validate(self, extra):


 "E:\microblog\venv\lib\site-packages\wtforms\fields\core.py", line 193, in validate

self.pre_validate(form)


 "E:\microblog\venv\lib\site-packages\wtforms\csrf\core.py", line 39, in pre_validate

self.csrf_impl.validate_csrf_token(form, self)


 "E:\microblog\venv\lib\site-packages\flask_wtf\csrf.py", line 147, in validate_csrf_token

self.meta.csrf_field_name


 "E:\microblog\venv\lib\site-packages\flask_wtf\csrf.py", line 98, in validate_csrf

if not safe_str_cmp(session[field_name], token):


 "E:\microblog\venv\lib\site-packages\werkzeug\security.py", line 138, in safe_str_cmp

return _builtin_safe_str_cmp(a, b)
TypeError: unsupported operand types(s) or combination of types: 'dict' and 'dict'

Traceback (most recent call last):


 "main.py", line 354, in <module>

fire.Fire()


 "/home/lyz/anaconda3/lib/python3.7/site-packages/fire/core.py", line 127, in Fire

component_trace = _Fire(component, args, context, name)


 "/home/lyz/anaconda3/lib/python3.7/site-packages/fire/core.py", line 366, in _Fire

component, remaining_args)


 "/home/lyz/anaconda3/lib/python3.7/site-packages/fire/core.py", line 542, in _CallCallable

result = fn(*varargs, **kwargs)


 "main.py", line 198, in train

'val_acc':val_acc.value()[0]},win_name = 'Acc')


 "/home/lyz/project/awesome_face_antispoofing/utils/Visualizer.py", line 67, in plot_many_stack

update=None if x == 0 else 'append'


 "/home/lyz/anaconda3/lib/python3.7/site-packages/visdom/__init__.py", line 335, in wrapped_f

return f(*args, **kwargs)


 "/home/lyz/anaconda3/lib/python3.7/site-packages/visdom/__init__.py", line 1367, in line

update=update, name=name)


 "/home/lyz/anaconda3/lib/python3.7/site-packages/visdom/__init__.py", line 335, in wrapped_f

return f(*args, **kwargs)


 "/home/lyz/anaconda3/lib/python3.7/site-packages/visdom/__init__.py", line 1292, in scatter

return self._send(data_to_send, endpoint=endpoint)


 "/home/lyz/anaconda3/lib/python3.7/site-packages/visdom/__init__.py", line 548, in _send

data=json.dumps(msg),


 "/home/lyz/anaconda3/lib/python3.7/json/__init__.py", line 231, in dumps

return _default_encoder.encode(obj)


 "/home/lyz/anaconda3/lib/python3.7/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/home/lyz/anaconda3/lib/python3.7/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/home/lyz/anaconda3/lib/python3.7/json/encoder.py", line 179, in default

raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Tensor is not JSON serializable
