Spaces:
Runtime error
Runtime error
File size: 728 Bytes
5e0b9df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from .evaluator_vcoco import vcoco_evaluate, vcoco_accumulate
from .evaluator_hico import hico_evaluate
def hoi_evaluator(args, model, criterion, postprocessors, data_loader, device, thr=0):
if args.dataset_file == 'vcoco':
return vcoco_evaluate(model, criterion, postprocessors, data_loader, device, args.output_dir, thr,args=args)
elif args.dataset_file == 'hico-det':
return hico_evaluate(model, postprocessors, data_loader, device, thr,args=args)
else: raise NotImplementedError
def hoi_accumulator(args, total_res, print_results=False, wandb=False):
if args.dataset_file == 'vcoco':
return vcoco_accumulate(total_res, args, print_results, wandb)
else: raise NotImplementedError |