bbb / ms-swift /scripts /utils /plot_loss.py
Student0809's picture
Add files using upload-large-folder tool
14e1dca verified
raw
history blame contribute delete
257 Bytes
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)