自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(97)
  • 资源 (2)
  • 收藏
  • 关注

原创 图像分割得到的掩膜mask怎么反选得到补集部分

用255或者label值来减去现有mask的nparray矩阵向量

2023-02-17 17:24:27 247

原创 分割mask转坐标并且给赋予不同颜色区分 厉害

https://imantics.readthedocs.io/en/latest/api.html

2023-02-17 11:52:59 274

原创 MONAI怎么读取image,label不报错

3. 确认数据结构没问题的情况下,查看label是否正常,如果为255或者其他乱七八糟的标注,需要归一化或者直接除以那个数。我的label是255,会显示在最左边的框里。label-255. 正常应该为1,2,3,4,,5. 要想得到这个指针,还需要先将GPU关闭,不然老是会跳出各种各样NVIDIA相关的error,从而misleading。一般来说就是这个ROI设置的太大了,甚至大过了image.shape, 可能是training data中的某些数据的大小比较小。主要靠这个才锁定是label的问题!

2022-11-01 20:34:59 1083 1

原创 R语言 Nomogram预测模型 youden-index选取最佳分数cutoff值 画KM分组图

自动得到每个个体总得分,自动选取nomogram最佳cutoff值,然后自动画KM图

2022-07-11 12:08:36 2126 2

原创 Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 597, 0,

无法绘制KM图是因为数据类型设置错误

2022-07-10 11:30:14 3697 1

原创 R语言,nomogram + youden index = 最佳分组grouping的cutoff值! 第一次理解可以用youden index来找nomogram的最佳分组点!先算每个患者的分ROC

R语言,nomogram + youden index = 最佳分组grouping的cutoff值! 第一次理解可以用youden index来找nomogram的最佳分组点!先算每个患者的分ROC

2022-06-26 17:42:11 751 1

原创 Windows服务器端内网穿透工具frps安装及使用教程

Windows服务器端内网穿透工具frps安装及使用教程http://www.codingwhy.com/view/2503.html之前我们讲了frp在windows服务器下的配置,本课程我们讲下客户端frpc的配置,c就是client了。http://www.codingwhy.com/view/2504.html关键:公网IP的端口port需要统一且确保开放没有限制。用户端设置例子:[common]server_addr = 175.27.190...

2021-04-06 22:29:59 801

原创 解决两台win10电脑局域网内得ping不通问题,需要设置inbound rules高级细节,防火墙入站规则

https://www.xitongtiandi.net/wenzhang/win10/30835.html

2021-03-31 14:49:01 1207

原创 高效版本:计算图像分割结果评测的DICE打分,MSD,Haus Distance

import osfrom os import listdirfrom os.path import join, exists, isdirimport nibabel as nibimport numpy as npimport SimpleITKimport torchimport loggingimport surface_distance as surfdistfrom Framework.dcm2nii import convert_rtss_to_nii_and_resam.

2021-03-29 18:32:52 627

原创 C#验证window系统的账号密码

http://blog.zy-xcx.cn/?id=98需要注意的是,这个api似乎只能验证local account,对microsoft账号好像不能验证,需要新建本地账号

2021-03-12 18:36:20 558

原创 win10无敌隐身术

attrib +s +h “yourpath”atrrib -s -h “yourpath”

2021-02-22 18:36:27 178

原创 C# restsharp 以Authenticator 传入用户管理中的username和password,相当于curl命令中的curl -u username:password, 也可token

using RestSharpusing RestSharp.Authenticatorsstring token_path = ConfigurationManager.AppSettings.Get("token_path");var client = new RestClient(token_path);var requiest = new RestRequest();request.Method = Method.POST;request.Parameters.Clea.

2021-01-25 19:30:52 1031

原创 C# backgroundworker进阶,可以通过e.argument,e.percentage,e.userstatus来实现doworker和dochange的参数传递,并且灵活控制

https://www.cnblogs.com/netserver/p/11363080.html

2021-01-09 14:36:43 327

原创 C# 使用this.invoke和sleep暂时解决UI假死问题,保证background worker.dowork下的线程同步,又不会丢失太多速度

int intStart = 0; for (int j = 0; j <= newPaths.Length - 1; j++) { File.Copy(newPaths[j], newPaths[j].Replace(sourceFolderName, destFolderName1), true); File.Copy(newPaths[j], newPaths[...

2021-01-09 14:30:52 385 1

原创 C# background worker意外执行两次或者多次,需要new一个局部变量

https://stackoverflow.com/questions/12231379/dowork-of-backgroundworker-is-called-twice-when-runworkerasync-is-called-once 解决方案

2021-01-09 14:27:34 347

原创 【C#】进程关闭和event退出

窗体关闭:this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出;2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出;3.Application.ExitThread(); 强制中止调用线程上的所有消息,同样面临其它线程无法正确退出的问题;4.System.Environment.Exit(0); 这是最彻底的退出方式,不管什么线程都被...

2021-01-06 11:18:47 750

原创 excel在去重的同时要选出最大值

C81=IF(A81<>A80,MAX(C$80:C80)+1,C80)向下bai复制G81=IFERROR(VLOOKUP(ROW(A1),IF({1,0},$C$81:$C$90,$A$81:$A$90),2,0),"")向下复制H81=IF(G83="","",MAX(IF($C$81:$C$90=ROW(A1),$B$81:$B$90)))

2020-12-27 11:59:38 696 1

原创 excel 使用vlookup实现 表格合并,类似left-join

最近处理数据时遇到需要将Excel中两个表数据按指定列作为条件进行连接合并的需求,若使用程序来实现稍微有点麻烦,想到excel有内置函数,去网上查了下,发现可以很方便的处理这种需求。先说下原始的需求:现在有两个表:sheet1: A B 1 userid level 2 1001 12 3 1002 15 sheet2: A B 1 userid username 2 ...

2020-12-26 12:38:56 2851

原创 C#可以用公用静态类实现公用变量的跨form调用。一定注意dictionary是需要在类中实例化的,用new

public static class resultjson { public static string input; //注意全局变量要使用static public static string output; public static string body_part; public static string organ_list; public static string task_id; ...

2020-12-21 18:58:23 415

原创 C#之BackgroundWorker从简单入门到深入精通的用法总结----可解决UI界面假死问题,后台运行程序耗时长

https://www.cnblogs.com/netserver/p/11363080.htmlhttps://www.cnblogs.com/zhaoshujie/p/9634136.html

2020-12-18 09:54:38 179

原创 use C# and Restsharp to connect server built up by flask. and get the response from server

private void button1_Click(object sender, EventArgs e) { //show the progressbar progress form1 = new progress(); form1.Show(); //create the json file Dictionary<string, string&...

2020-12-11 17:40:29 99

原创 C# post,get 方法实现对json数据的http传输

https://www.cnblogs.com/linfenghp/p/7554113.html

2020-12-11 16:38:49 1111

原创 How to pass multiple inputs into the forward function in Pytorch

when pass the several input into a model, you need to add something.when run into the error that ' you need a required input or parameter' : you could use * in front of C, but I don't know why, I just try it out for thousands of times to make it work...

2020-10-31 13:57:50 325

原创 pytorch 画network图,并保存pdf。可用于debug和模型架构调整梳理。

def make_dot(var, params=None): """ Produces Graphviz representation of PyTorch autograd graph Blue nodes are the Variables that require grad, orange are Tensors saved for backward in torch.autograd.Function Args: var: output Variabl.

2020-09-14 13:05:01 334

原创 BUG:mxnet.base.MXNetError: Error in operator conv_1_conv2d:

mxnet.base.MXNetError: Error in operator conv_1_conv2d: [11:05:25] src/operator/nn/convolution.cc:152: Check failed: dshp.ndim() == 4U (1 vs. 4) : Input data should be 4D in batch-num_filter-y-x1. 出现这种bug,一般情况下是因为输入有问题,维度不符合预设2. 检查输入路径是否为空3. 检查输入的是.

2020-08-05 11:22:04 822

原创 解决ubuntu 操作list太长的问题bash: /bin/mv: Argument list too long

解决办法:# Using find ... -exec +find folder2 -name '*.*' -exec mv --target-directory=folder '{}' +# Using xargsfind folder2 -name '*.*' | xargs mv --target-directory=folder命令,如果是cp、rm 、ls操作将以上命令里中的mv改为相应的命令即可;...

2020-07-22 16:05:26 351

原创 安装cuda和相应得cudnn

GPU:Geforce GTX1060驱动版本:418.56最开始打算装CUDA_10.1( nvidia与cuda需相匹配),但是在运行cuda.run后出现的用户许可证信息有问题,如图但是CUDA_10.1与驱动版本是相匹配的,也没有整明白为什么,最后选择了CUDA_10.0,安装成功。(cuda版本:cuda_10.0.130_410.48_linux.runcudnn版本:cudnn-10.0-linux-x64-v7.3.1.20.tgz)一、安装方式CUDA提供两种安装方式:

2020-07-20 11:18:41 445

原创 配置docker环境

零、安装Docker安装环境:Ubuntu 16.04.2 LTS#卸载旧版本apt-get remove docker \ docker-engine \ docker.io#开始安装apt-get update#添加使用 HTTPS 传输的软件包以及 CA 证书apt-get install \ apt-transport-https \ ca-certificates \ curl \..

2020-07-17 21:43:31 178

原创 【backup】守护模式run后台运行容器,命名,并读取image., 并挂载本地路径到docker路径

docker run -v /home/jack/Desktop/detection_dev:/usr/jack:rw -dit --name detection_dev allenyllee/cuda80-fix /bin/bash

2020-07-17 21:39:01 108

原创 3D图像data_loader的巨坑,小心data_loader中的归一化处理需要区分医学图像还是自然图像

医学影像一般数字范围为:-1024~65535自然图像基本上都是0~255除以255实质是做MaxMin归一化,,,但是医学图像的取值范围不是255,一旦除以255就会使得医学图像训练不收敛并且成像分散

2020-06-02 11:32:41 763 1

原创 ImportError: No module named bbox #395, cython存在时需要编译

rcnn调用的cython,cython需要编译I just find my commandpythonusepython3, but my project usepython2.So, I make it withpython2 setup.py build_ext --inplaceagain.So the problem was solved.You can also enter the folder where the Cython files are placed ...

2020-05-25 09:52:33 910

原创 win10下PHP环境搭建

1、PHP环境搭建的前提是 Apache HTTP Server (Apache 服务器)已经安装部署成功,并可以正常访问到服务器的主页面。Apache HTTP Server 的安装部署已经在上一篇讲解的很详细了,不清楚的可以点击“Apache HTTP Servcer-Apache服务器下载与Windows系统下安装”查看具体操作。2、PHP下载:2.1、下载地址:http://php.net/downloads.php2.1、版本选择:如果是与 Apache 搭配,建议选...

2020-05-21 09:48:04 1066

原创 Apache HTTP Server 的win10安装部署

目录1、首先,介绍一下 Apache 服务器和 Tomcat 服务器的区别与联系:1.1、Apache:是C语言实现的,专门用来提供HTTP服务。1.2、 Tomcat:是Java开发的一个符合JavaEE的Servlet规范的JSP服务器(Servlet容器),是 Apache 的扩展。1.3、Apache + Tomcat 两者整合后优点:2、其次,就是Apache服务器的下载:2.1、点击 Download 进入下载页面:2. 2、选择版本以及适用的操作系统,此处选择.

2020-05-20 23:00:53 541

原创 ImportError: attempted relative import with no known parent package

from ..deploy import face_modelImportError: attempted relative import with no known parent package------》》》1、sys.path 看一下项目的目录2、如果引用的模块在本项目根目录下,可以使用 from dirname import module、import module 或者相对路径 import ..module 来引用(具体看实际情况)3、如果引用的模块和本项目目录不一致(这种基.

2020-05-13 15:58:38 224

原创 cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:668: er

cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:668: error: (-215:Assertion failed) image.channels() == 1 || image.channels() == 3 || image.channels() == 4...

2020-04-27 22:54:31 9875

原创 base64转换成np、opencv、PIL

# -*- coding: utf-8 -*-# coding: utf-8import base64import numpy as npimport cv2from PIL import Imageimport ioimport PIL img_file = open('4.png','rb') # 二进制打开图片文件img_b64encode = base64.b64...

2020-04-15 23:49:30 199

原创 linux中screen软件可以不断开深度学习训练,在服务器训练时非常有用,且能获得实时outpu

官方网址:http://www.gnu.org/software/screen/1、简介Screen是一款由GNU计划开发的用于命令行终端切换的自由软件。用户可以通过该软件同时连接多个本地或远程的命令行会话,并在其间自由切换。GNU Screen可以看作是窗口管理器的命令行界面版本。它提供了统一的管理多个会话的界面和相应的功能。在Screen环境下,所有的会话都独立的运行,并拥有各自的编...

2020-04-09 22:49:06 361

原创 docker: Error response from daemon: Unknown runtime specified nvidia. 解决方法

nvidia-docker 运行出错:1 拉取镜像:docker pull XXX2 开启镜像:nvidia-docker run -it -v `pwd`:/paddle XXX /bin/bash3 报错:docker: Error response from daemon: Unknown runtime specified nvidia.4 找方法:原来是...

2020-04-03 11:50:39 1113

原创 docker镜像的导出和导入

docker镜像的导出和导入显示当前docker中的镜像:docker images镜像列表如下:REPOSITORY TAG IMAGE ID CREATED SIZEpointsift latest 90b2ef...

2020-04-03 11:33:34 175

原创 backup: win10上传内部gitlab代码步骤

git remote rm origingit remote add origin 'clone with http' ##need to input the username and passwordgit clone'clone with http' ##in order to have the permission##replace the files in the cl...

2020-04-01 19:37:38 135

完整影像组学分析流程 多重插值补缺-特征挑选-聚类-回归-ROC-Crossvalidation-DCA-收工

完整影像组学分析流程 多重插值补缺-特征挑选-聚类-回归-ROC-Crossvalidation-DCA-收工

2021-06-09

R语言 生存分析源码 cox模型 KM图 标准分析流程 原创

R语言 生存分析源码 cox模型 KM图 标准分析流程 所有生存分析中常用的分析流程和代码都原创分享。这是平时项目的一些积累,有详细备注,可以帮助快速入门R语言和进行生存分析处理,处理生存数据

2018-11-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除