Training、Validation
<class 'dict'>
Traceback (most recent call last):
File "tools/train.py", line 172, in
main()
File "tools/train.py", line 168, in main
run(FLAGS, cfg)
File "tools/train.py", line 132, in run
trainer.train(FLAGS.eval)
File "/home/aistudio/work/PaddleDetection/ppdet/engine/trainer.py", line 537, in train
self.model.set_dict(self.ema.apply())
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py", line 486, in wrapper
return func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 1496, in set_state_dict
param.set_value(state)
File "", line 2, in set_value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 25, in impl
return wrapped_func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py", line 434, in impl
return func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/varbase_patch_methods.py", line 188, in set_value
self.name, self.dtype, dtype)
AssertionError: Variable dtype not match, Variable [ auto_16_ ] need tensor with dtype paddle.int64 but load tensor with dtype paddle.float32
paddlepaddle:2.5.2
paddledetection:release/2.6
python:3.10.10
cuda:11.3
cudnn:8.4