Commit 97a66874 authored by MissPenguin's avatar MissPenguin
Browse files

refine

parent 053cc43d
...@@ -338,8 +338,12 @@ def train(config, ...@@ -338,8 +338,12 @@ def train(config,
return return
def eval(model, valid_dataloader, post_process_class, eval_class, def eval(model,
model_type, use_srn=False): valid_dataloader,
post_process_class,
eval_class,
model_type,
use_srn=False):
model.eval() model.eval()
with paddle.no_grad(): with paddle.no_grad():
total_frame = 0.0 total_frame = 0.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment