1 Star 0 Fork 1

alphabstc/Meta-SR-Pytorch

forked from Hoyt_Hu/Meta-SR-Pytorch 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 472 Bytes
一键复制 编辑 原始数据 按行查看 历史
huxc1992 提交于 2019-05-26 21:01 +08:00 . Add files via upload
import torch
import utility
import data
import model
import loss
from option import args
from trainer import Trainer
torch.manual_seed(args.seed)
checkpoint = utility.checkpoint(args)
if checkpoint.ok:
loader = data.Data(args)
model = model.Model(args, checkpoint)
loss = loss.Loss(args, checkpoint) if not args.test_only else None
t = Trainer(args, loader, model, loss, checkpoint)
while not t.terminate():
t.test()
checkpoint.done()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/alphabstc/Meta-SR-Pytorch.git
git@gitee.com:alphabstc/Meta-SR-Pytorch.git
alphabstc
Meta-SR-Pytorch
Meta-SR-Pytorch
master

搜索帮助