当前位置:网站首页>【故障诊断】stitch.py脚本失效
【故障诊断】stitch.py脚本失效
2022-06-22 04:39:00 【鲤鱼王的成长之路】
故障描述
这一次这个脚本无法将切除的patch拼在一起,这可怎么办呢?还是一样不报错,就是无法运行。
故障原因
这次主要是因为目录下有一个HSP-70,因为os.walk返回的是一个三元组,代码里files会返回这个目录下所有的文件,所以masks文件夹里的HSP-70也被拿出来了,这个是很麻烦的事情。就是因为这张mask和其它的图大小不一致,导致脚本失效。
loc = '/data112/lizx/Data_liver/1_patches/%s/%s'%(stain, test_slide)
for root, dirs, files in os.walk(loc):

解决方案
loc = '/data112/lizx/Data_liver/1_patches/%s/%s/patches'%(stain, test_slide)
for root, dirs, files in os.walk(loc):
边栏推荐
- The feeling of leaving full-time for a single month!
- Shell Sort
- Pourquoi golang ne recommande - t - il pas ceci / self / me / this / _ Ça.
- Kotlin project reports an error and lacks coroutinecontext dependency
- 商汤智慧医疗团队研究员解读智慧医疗下的器官图像处理
- Knowledge points used in MVC project development (mvccontrib separates asp.net MVC project)
- How much does it cost to buy a fixed-term life insurance with an insured amount of 500000 at the age of 42? Is there any product recommendation
- 使用Chrome调试微信内置浏览器
- Circuit board layout and wiring precautions for analog / digital mixed signals
- Redis 主从复制
猜你喜欢

LeetCode 437. Path sum III - binary tree series question 13

Circuit board layout and wiring precautions for analog / digital mixed signals

JUC - 线程中断与线程等待、唤醒(LockSupport)

Adjacency matrix, adjacency table, cross linked list, adjacency multi table

Learning signal integrity from scratch -- 7-si analysis and simulation

active RM机子断电后,RM HA切换正常。但是YarnUI上查看不到集群资源,application也一直处于ACCEPTED状态。

Golang为什么不推荐使用this/self/me/that/_this

SQL operation: with expression and its application

Get the specified row content in Oracle rownum and row_ number()

Quick sort
随机推荐
How SQL server generates change scripts
Axios get parameter transfer splicing database fields
网页设计与制作期末大作业报告——小众音乐网站
IDS interview questions collection data structure + penetration avalanche + persistence + memory elimination strategy + database double write + Sentinel
源代码加密技术科普
Pytorch之contiguous函数
Popular science of source code encryption technology
WPF DataContext usage (2)
Odoo Development Manual (I) the second day of contact with odoo
How to check the domain name for free through IP?
Odoo 开发手册(一)接触 odoo 的第二天...
学信网的头像下载下来太小的处理方法
The feeling of leaving full-time for a single month!
[从零开始学习FPGA编程-39]:进阶篇 - 语法-硬件模块的单元测试:仿真激励、testbench
通过ip如何免费反查域名?
QML control types: swipeview, pageindicator
Redis master-slave replication
Tencent一面
103. simple chat room 6: using socket communication
使用Echart绘制3D饼环图、仪表盘、电池图