- 博客(6)
- 收藏
- 关注
原创 skimage的mean_squared_error和numpy计算不一致
默认情况下,OpenCV 读取的图像数组的数据类型是 uint8,即无符号8位整数。这意味着每个像素的值范围在 0 到 255 之间。所以平方之后的值还是限定在0-255,所以用astype(float)转成float就好了。skimage的mean_squared_error和numpy计算不一致,相差很大。
2024-04-13 17:32:45
232
1
原创 crypto.subtle.digest(“SHA-256“, e)是浏览器端的一种sha256加密方式
crypto.subtle.digest("SHA-256", e)是浏览器端的一种sha256加密方式
2023-03-07 16:45:30
1792
原创 pyinstaller打包时tiktoken.getencoding(“gpt2“)报错ValueError: Unknown encoding gpt2
pyinstaller打包时tiktoken.getencoding("gpt2")报错ValueError: Unknown encoding gpt2
2023-03-07 16:28:17
581
原创 Anaconda的环境,pyinstaller打包后requests出现“HTTPS URL because the SSL module is not available“
Anaconda的环境,pyinstaller打包requests时出现"HTTPS URL because the SSL module is not available"
2023-03-06 15:56:59
616
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人