-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Support Evaluation Hook of Translation Models (#127)
* support translation evaluation during training * fix lint * fix priority for eval hook * fix pr and add evaluation to configs * solve conflict Co-authored-by: yangyifei <PJLAB\yangyifei@shai14001042l.pjlab.org>
- Loading branch information
Showing
14 changed files
with
343 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
# Copyright (c) OpenMMLab. All rights reserved. | ||
from .eval_hooks import GenerativeEvalHook | ||
from .eval_hooks import GenerativeEvalHook, TranslationEvalHook | ||
from .evaluation import (make_metrics_table, make_vanilla_dataloader, | ||
single_gpu_evaluation, single_gpu_online_evaluation) | ||
from .metric_utils import slerp | ||
from .metrics import (IS, MS_SSIM, PR, SWD, GaussianKLD, ms_ssim, | ||
sliced_wasserstein) | ||
|
||
__all__ = [ | ||
'MS_SSIM', | ||
'SWD', | ||
'ms_ssim', | ||
'sliced_wasserstein', | ||
'single_gpu_evaluation', | ||
'single_gpu_online_evaluation', | ||
'PR', | ||
'IS', | ||
'slerp', | ||
'GenerativeEvalHook', | ||
'make_metrics_table', | ||
'make_vanilla_dataloader', | ||
'GaussianKLD', | ||
'MS_SSIM', 'SWD', 'ms_ssim', 'sliced_wasserstein', 'single_gpu_evaluation', | ||
'single_gpu_online_evaluation', 'PR', 'IS', 'slerp', 'GenerativeEvalHook', | ||
'make_metrics_table', 'make_vanilla_dataloader', 'GaussianKLD', | ||
'TranslationEvalHook' | ||
] |
Oops, something went wrong.