上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 341 下一页
摘要: 绝对路径1、os.path 方法import osimport syscurrent_directory = os.path.dirname(os.path.abspath(__file__))print(current_directory) 2、os.path.abspath 方法import o 阅读全文
posted @ 2023-02-11 20:28 emanlee 阅读(76) 评论(0) 推荐(0)
摘要: matplotlib 中文字体测试 wget https://zihao-openmmlab.obs.cn-east-3.myhuaweicloud.com/20220716-mmclassification/dataset/SimHei.ttf # /home/software/anaconda3 阅读全文
posted @ 2023-02-11 20:24 emanlee 阅读(1873) 评论(0) 推荐(0)
摘要: AttributeError Traceback (most recent call last)/tmp/ipykernel_13758/2975874631.py in <module> > 1 ft_model.load_weights('./saved_models/D8.v8.h5') 2 阅读全文
posted @ 2023-02-03 22:38 emanlee 阅读(237) 评论(0) 推荐(0)
摘要: The purpose of loss functions is to compute the quantity that a model should seek to minimize during training. https://tensorflow.google.cn/api_docs/p 阅读全文
posted @ 2023-02-03 22:00 emanlee 阅读(72) 评论(0) 推荐(0)
摘要: 一个坑:pybedtools 使用和不用saveas 会导致结果不同,有时saveas 或 count 就会清空数据。 It looks like filter function doesn't return a BedTool object ready to use. a = pybedtools 阅读全文
posted @ 2023-02-03 10:15 emanlee 阅读(90) 评论(0) 推荐(0)
摘要: 读写bin文件 ndarray.tofile(fid, sep="", format="%s") 将数组作为txt或bin(默认)写入文件, 不保存数组形状和元素类型 fid: 文件对象/文件名 sep: 分隔符 format: 格式化字符串 ndarray.fromfile(file, dtype 阅读全文
posted @ 2023-02-02 23:21 emanlee 阅读(443) 评论(0) 推荐(0)
摘要: Linux快速搭建tensorflow-gpu 1.15.0环境&Keras conda create -n tf115 -c conda-forge tensorflow-gpu=1.15 conda install keras==2.3.1 激活虚拟环境tf115 之后做以下操作: conda 阅读全文
posted @ 2023-02-02 22:41 emanlee 阅读(357) 评论(0) 推荐(0)
摘要: nvcc -V 的cuda,显卡驱动,TensorFlow 2.2, py3.8; 好像和cuDNN无关? 可以用接近版本,比如10.1和10.0可以兼容。 tensorflow-gpu无法调用GPU的解决办法 # nvcc -Vnvcc: NVIDIA (R) Cuda compiler driv 阅读全文
posted @ 2023-02-02 22:36 emanlee 阅读(5098) 评论(0) 推荐(0)
摘要: conda install cudatoolkit=10.0 conda install cudnn=7.3.1 pip3 install tensorflow-gpu==1.15 conda create -n tensorflow1.15 python=3.7 conda activate te 阅读全文
posted @ 2023-02-02 22:31 emanlee 阅读(422) 评论(0) 推荐(0)
摘要: REF https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.boxplot.html https://matplotlib.org/stable/gallery/statistics/boxplot_demo.html https: 阅读全文
posted @ 2023-02-02 20:30 emanlee 阅读(465) 评论(0) 推荐(0)
上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 341 下一页