• Peizhao Zhang's avatar
    allow skipping inference when running evaluation. · baded432
    Peizhao Zhang authored
    Summary:
    Pull Request resolved: https://github.com/facebookresearch/d2go/pull/354
    
    Allow skipping inference when running evaluation.
    * `inference_on_dataset_with_checkpointing` works similar to `inference_on_dataset` in d2 but allows skipping the inference step if the evaluator has cached the results.
    * If the evaluator has a function `could_skip_process` and returns True, inference will be skipped and only `evaluator. reset()` and `evaluator.evaluate()` are called.
    
    Reviewed By: wat3rBro
    
    Differential Revision: D37213004
    
    fbshipit-source-id: d12cc480589ff04fd8dbb42b22633ab34bc4bf63
    baded432
test_evaluator.py 2.73 KB