Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenmengzhou committed May 15, 2024
1 parent 43cdafb commit f29c475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modelscope/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
'loss_metric': ['LossMetric'],
'image_colorization_metric': ['ImageColorizationMetric'],
'ocr_recognition_metric': ['OCRRecognitionMetric'],
'translation_evaluation_metric': ['TranslationEvaluationMetric']
'translation_evaluation_metric': ['TranslationEvaluationMetric'],
'video_super_resolution_metric.video_super_resolution_metric':
['VideoSuperResolutionMetric'],
}

import sys
Expand Down
2 changes: 1 addition & 1 deletion modelscope/trainers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'nlp_trainer': ['NlpEpochBasedTrainer', 'VecoTrainer'],
'trainer': ['EpochBasedTrainer'],
'training_args': ['TrainingArgs', 'build_dataset_from_file'],
'hooks': ['Hook']
'hooks': ['Hook', 'Priority']
}

import sys
Expand Down

0 comments on commit f29c475

Please sign in to comment.