"vscode:/vscode.git/clone" did not exist on "99407f9d1ece38d62a257fa8c65c3a2e114164e6"
plot_loss.py 257 Bytes
Newer Older
wanglch's avatar
wanglch committed
1
2
3
4
5
6
7
8
9
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)