Style_transfer_combo:回购样式转移代码

时间:2021-04-27 14:09:34
【文件属性】:
文件名称:Style_transfer_combo:回购样式转移代码
文件大小:7.5MB
文件格式:ZIP
更新时间:2021-04-27 14:09:34
pytorch style-transfer neural Python Style_transfer_combo 基于Pytorch的样式转换算法的实现。 完全的: Leon Gatys论文提到的基本算法的实现 启用了CPU和GPU支持。 运行代码: 可以使用run_style_transfer.py运行样式转移代码,如下所示: 要启用GPU使用: python run_style_transfer.py --style_path '../images/wheat_field_van_gogh.jpg' --content_path '../images/santa_monica.jpg' --result_dir '../images' --max_epochs 60 --device 'cuda' 要使用CPU,请使用以下命令: python run_style_transfer.py --style_path '../images/wheat_
【文件预览】:
Style_transfer_combo-master
----src()
--------network.py(2KB)
--------process_images.py(2KB)
--------__pycache__()
--------loss_functions.py(520B)
--------run_style_transfer.py(5KB)
----images()
--------starry_night.jpg(188KB)
--------santa_monica.jpg(40KB)
--------wheat_field_van_gogh.jpg(5.47MB)
--------wheat_field_santa_monica_results.png(920KB)
--------results.png(910KB)
----README.md(1KB)
----__pycache__()
--------loss_functions.cpython-35.pyc(1024B)
--------process_images.cpython-35.pyc(2KB)
--------network.cpython-35.pyc(3KB)

网友评论