Spaces:
Build error
Build error
Download hotr/engine/__init__.py from MLVLab/Human_Object_Interaction: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/spaces/MLVLab/Human_Object_Interaction/resolve/main/hotr/engine/__init__.py
- Command line
-
hf download hf://spaces/MLVLab/Human_Object_Interaction/hotr/engine/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/MLVLab/Human_Object_Interaction/resolve/main/hotr/engine/__init__.py
728 Bytes
| 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 |