按照提示,运行实训代码
进入实训平台:https://xihe.mindspore.cn/projects
选择"jupyter 在线编辑器"
启动"Ascend开发环境" :Ascend开发环境需要申请,大家可以申请试试看
启动开发环境后,在左边的文件夹中,选择"应用实践"-"热门LLM及其它AI应用"-"应用实践/热门LLM及其他AI应用/基于MindSpore实现CycleGAN壁画修复.ipynb"
打开这个ipynb文件后,选择"运行全部"
训练还是需要一些时间的:
Start training!
Epoch:[ 1/ 1], step:[ 0/2000], time:97.629410s,
loss_g:2.33, loss_d:0.63, loss_g_a: 0.52, loss_g_b: 0.29, loss_c_a: 0.68, loss_c_b: 0.26, loss_idt_a: 0.21, loss_idt_b: 0.37
Epoch:[ 1/ 1], step:[ 200/2000], time:1.040416s,
loss_g:4.34, loss_d:4.22, loss_g_a: 1.96, loss_g_b: 0.36, loss_c_a: 0.73, loss_c_b: 0.75, loss_idt_a: 0.13, loss_idt_b: 0.40
结合视频学习效果更佳:【基于MindSpore实现CycleGAN壁画修复】 https://www.bilibili.com/video/BV1sWx9e7EbA/?share_source=copy_web&vd_source=8b4c97767b164d6b12da442fa3fc9f2f