Unet项目解析(3): run_testing.py
项目GitHub主页:https://github.com/orobix/retina-unet
参考论文:Retina blood vessel segmentation with a convolution neural network (U-net) Retina blood vessel segmentation with a convolution neural network (U-net)
import os, sys
import ConfigParser#config file to read from
config = ConfigParser.RawConfigParser()
config.readfp(open(r'./configuration.txt'))
#===========================================
#name of the experiment!!
name_experiment = config.get('experiment name', 'name')
nohup = config.getboolean('testing settings', 'nohup') #std output on log file?#create a folder for the results if not existing already
result_dir = name_experiment
print "\n1. Create directory for the results (if not already existing)"
if os.path.exists(result_dir):pass
elif sys.platform=='win32':os.system('md ' + result_dir)
else:os.system('mkdir -p ' + result_dir)# finally run the prediction
if nohup:print "\n2. Run the prediction with nohup (no GPU)"os.system(' nohup python -u ./src/retinaNN_predict.py > ' +'./'+name_experiment+'/'+name_experiment+'_prediction.nohup')
else:print "\n2. Run the prediction without nohup (no GPU)"os.system(run_GPU +' python ./src/retinaNN_predict.py')
代码很简单,可以直接参考run_training.
Unet项目解析(3): run_testing.py相关推荐
- Unet项目解析(1): run_training.py
项目GitHub主页:https://github.com/orobix/retina-unet 参考论文:Retina blood vessel segmentation with a convol ...
- Unet项目解析(4): ./src/RetinaNN_predict.py
项目GitHub主页:https://github.com/orobix/retina-unet 参考论文:Retina blood vessel segmentation with a convol ...
- Unet项目解析(2):./src/retinaNN_training.py
项目GitHub主页:https://github.com/orobix/retina-unet 参考论文:Retina blood vessel segmentation with a convol ...
- Unet项目解析(7): 模型编译-优化函数、损失函数、指标列表
项目GitHub主页:https://github.com/orobix/retina-unet 参考论文:Retina blood vessel segmentation with a convol ...
- Unet项目解析(6): 图像分块、整合 / 数据对齐、网络输出转成图像
项目GitHub主页:https://github.com/orobix/retina-unet 参考论文:Retina blood vessel segmentation with a convol ...
- Unet项目解析(5): 数据封装、数据加载、数据显示
项目GitHub主页:https://github.com/orobix/retina-unet 参考论文:Retina blood vessel segmentation with a convol ...
- Django 1.6 最佳实践: 如何设置django项目的设置(settings.py)和部署文件(requirements.txt)...
Django 1.6 最佳实践: 如何设置django项目的设置(settings.py)和部署文件(requirements.txt) 作者: Desmond Chen, 发布日期: 2014-05 ...
- 《R语言数据挖掘:实用项目解析》——第2章,第2.9节无参数方法
本节书摘来自华章出版社<R语言数据挖掘:实用项目解析>一书中的第2章,第2.9节无参数方法,作者[印度]普拉迪帕塔·米什拉(Pradeepta Mishra),更多章节内容可以访问云栖社区 ...
- Github项目解析(九)--实现Activity跳转动画的五种方式
2019独角兽企业重金招聘Python工程师标准>>> 版权声明:本文为博主原创文章,未经博主允许不得转载. 转载请标明出处:一片枫叶的专栏 上一篇文章中我们讲解了在Activity ...
最新文章
- Spark2.11 两种流操作 + Kafka
- 三、 将DataTable 转换为List
- php100 linux,PHP100精华:很靠谱linux经常使用命令
- Linux 怎么重启 mysql
- dedecms 会员发布的信息后台未审核,前台显示审核修改
- 【Go语言入门教程】Go语言简介
- 龙果支付 mysql_龙果学院 基于电商业务的企业级大中台从设计到实现(第一阶段) 百度云 百度网盘...
- 经典小游戏开发思路和算法之拼图(1)
- 双系统linux哪种好,双系统安装实战,这个Linux系统超级简单
- arcgis10之将一个shp属性数据通过某一字段将要素属性关联至另一shp文件中
- 一些关于吸血鬼的词汇
- vue与原生安卓相互调用
- oracle官网下载JDK速度很慢的解决方案
- PostgreSQL 报ERROR: column c.relhasoids does not exist
- 英语语法5-现在完成时
- 雨课堂知识点总结(十九)
- 腾讯后台面经大全(整合版)
- 画渐变色的C++代码
- C语言-输出100以内的质数
- 360称该工具全面保护QQ用户的安全