code
筱CV菌
这个作者很懒,什么都没留下…
展开
-
检测低对比度图片教程
检测低对比度图片@TOC连接:检测低对比度图片代码原创 2021-02-21 10:46:12 · 866 阅读 · 0 评论 -
解压文件下下的子目录里的压缩文件(运行时只需要输入待解压文件夹的路径)
#!/usr/bin/env python#! -*- coding:utf-8 -*-import zipfileimport osimport shutildef un_zip(file_name): """解压单个文件""" zip_file = zipfile.ZipFile(file_name) #读取zip文件 if os.path.isdir(file_name[:-4]): #判断是否存在文件夹,file_n原创 2020-07-01 10:54:25 · 223 阅读 · 0 评论 -
使用GradCam和LIME可视化EfficientNet
1.GradCam实现:参考https://github.com/sidml/EfficientNet-GradCam-Visualizationgit clone https://github.com/FrancescoSaverioZuppichini/A-journey-into-Convolutional-Neural-Network-visualization-.gitcd A-journey-into-Convolutional-Neural-Network-visualization-原创 2020-06-24 09:33:32 · 1650 阅读 · 2 评论 -
对json文件解析以及解析后进行分类代码
#USAGE python classify.py --json ./234-5.json #--catagor_num 3 #--old_image_path ./fundus/ #--new_image_path ./Category/#detailed category needed modifyimport jsonimport argparseap = argparse.ArgumentParser()ap.add_argument("-t", "--json", requ原创 2020-06-13 11:37:54 · 425 阅读 · 0 评论 -
Out-of-fold解释与应用
https://machinelearningmastery.com/out-of-fold-predictions-in-machine-learning/原创 2020-06-10 17:03:54 · 1431 阅读 · 0 评论 -
使用清华镜像安装软件
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simplepip install -U xxx -i https://pypi.tuna.tsinghua.edu.cn/simple原创 2020-06-04 21:33:00 · 463 阅读 · 0 评论 -
为文件夹的图片重新命名filename_label的形式
import osdef rename(): count = 0 path="./dataset/val/Abnormal/" filelist=os.listdir(path)#该文件夹下所有的文件(包括文件夹) for files in filelist:#遍历所有文件 Olddir=os.path.join(path,files)#原来的文件路径 if os.path.isdir(Olddir):#如果是文件夹则跳过原创 2020-06-04 21:30:25 · 296 阅读 · 0 评论 -
pytorch 中的 forward 的使用与解释
转自:https://blog.csdn.net/xu380393916/article/details/97280035,感谢作者分享。在使用pytorch的时候,模型训练时,不需要使用forward,只要在实例化一个对象中传入对应的参数就可以自动调用 forward 函数class Module(nn.Module): def __init__(self): sup...转载 2019-08-14 12:15:03 · 2375 阅读 · 1 评论 -
计算图片数据集的均值和方差
https://blog.csdn.net/haseetxwd/article/details/89236984#commentBox转载 2019-07-16 19:09:45 · 2967 阅读 · 0 评论 -
Python-opencv修改文件夹下的图片尺寸
code: https://blog.csdn.net/qq_38269799/article/details/80706655函数解释: https://blog.csdn.net/li_l_il/article/details/83218838转载 2019-07-16 15:38:40 · 651 阅读 · 0 评论 -
python将一个文件夹下图片按比例分为训练集,验证集和测试集三个文件夹下
#!/usr/bin/env python # -*- coding:utf-8 -*-# 将一个文件夹下图片按比例分在三个文件夹下import osimport randomimport shutilfrom shutil import copy2datadir_normal = "./fundus_data_pres/Normal/images/"all_data = os....原创 2019-07-08 19:20:55 · 6416 阅读 · 7 评论 -
python 删除一个目录下的所有文件
https://www.cnblogs.com/wolfshining/p/7725521.html转载 2019-07-08 19:09:46 · 508 阅读 · 0 评论 -
python 之 OpenCV 图像掩模
https://blog.csdn.net/weixin_42338058/article/details/88568704转载 2019-05-12 21:47:26 · 2303 阅读 · 0 评论 -
图像缩放的插值方法
https://blog.csdn.net/weixin_37864196/article/details/80969697转载 2019-05-12 21:36:15 · 527 阅读 · 0 评论 -
利用Keras实现利用迁移学习实现分类
https://blog.csdn.net/sinat_26917383/article/details/72982230转载 2019-05-10 16:30:42 · 1541 阅读 · 0 评论