摘要: 在训练神经网络的时候,需要对输入的图片进行归一化操作。对于单通道灰度图可以进行采样并求取采样图片的均值和方差。 假设训练所用的图片名都存在figure_file.txt中。 import os import numpy as np from PIL import Image channel_mean 阅读全文
posted @ 2022-12-15 11:20 __一条秋刀鱼 阅读(37) 评论(0) 推荐(0)
摘要: 报错 在多分类语义分割问题中使用torch.nn.CrossEntropyLoss的时候,遇到的报错有: 1. Assertion `t >= 0 && t < n_classes` failed. 2. RuntimeError: Expected floating point type for 阅读全文
posted @ 2022-12-14 12:56 __一条秋刀鱼 阅读(951) 评论(0) 推荐(0)
摘要: 在服务器上用3090尝试运行程序的时候发现了报错 UserWarning: NVIDIA GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The 阅读全文
posted @ 2022-12-12 15:19 __一条秋刀鱼 阅读(926) 评论(0) 推荐(0)
摘要: 文章目录 Development of Edge DetectionMulti-scale learning structureLoss FunctionNetwork Architecture 📄:Holistically-Nested Edge Detection 🔗:https://ope 阅读全文
posted @ 2022-12-12 11:13 __一条秋刀鱼 阅读(90) 评论(0) 推荐(0)
摘要: Applied Data Science with Python Part 1: Introduction to Data Science in Python 最近在Coursera平台上学习了密西根大学的Applied Data Science with Python 课程,因此想将所学的内容记录 阅读全文
posted @ 2022-12-01 17:23 __一条秋刀鱼 阅读(31) 评论(0) 推荐(0)
摘要: Mac 预览(Preview)丢失PDF标注恢复 https://github.com/julihoh/pdf_annotation_fix#readme real好用!谁用谁感动! 阅读全文
posted @ 2022-10-22 15:28 __一条秋刀鱼 阅读(61) 评论(0) 推荐(0)
摘要: 说明 因为想将txt文本导入excel进行处理,但是本来是一行的数据因为提取的时候变成了两行,因此这里想将txt文件的每两行合并成一行 具体思路就是将txt每两行加入到一个有序集合中,然后再将这个集合写入目标文件。 fhand=open('excel_geo.txt') #原来的txt myset= 阅读全文
posted @ 2022-09-13 15:39 __一条秋刀鱼 阅读(72) 评论(0) 推荐(0)
摘要: import gdal import numpy as np filename = 'LST_250_202108' data = np.load(filename + '.npy') print(data.shape) # 创建tif文件 driver = gdal.GetDriverByName 阅读全文
posted @ 2022-08-29 14:46 __一条秋刀鱼 阅读(197) 评论(0) 推荐(0)
摘要: 给定经纬度和投影方式计算区域面积。多边形适用。 from pyproj import Geod from shapely.geometry import Point, LineString, Polygon geod = Geod(ellps="WGS84") print(geod.geometry 阅读全文
posted @ 2022-07-28 10:13 __一条秋刀鱼 阅读(301) 评论(0) 推荐(0)
摘要: 目录 大气对流参数的分类稳定度参数条件性稳定度指数沙氏指数 (Showalter Index, SI)抬升指数(Lifting Index, LI) 对流性稳定指数IC最大对流稳定度指数BIC 其他热力稳定度指数K总指数(TT) 能量参数有效能量参数CAPE的计算DCAPE (Downdraft C 阅读全文
posted @ 2022-06-15 16:43 __一条秋刀鱼 阅读(708) 评论(0) 推荐(0)