Files
modelscope--ms-swift/scripts/utils/plot_loss.py
T
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

10 lines
257 B
Python

import os
from swift.utils import plot_images
ckpt_dir = 'output/xxx/vx-xxx'
if __name__ == '__main__':
images_dir = os.path.join(ckpt_dir, 'images')
tb_dir = os.path.join(ckpt_dir, 'runs')
plot_images(images_dir, tb_dir, ['train/loss'], 0.9)