会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
山…隹
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
···
29
下一页
2024年10月22日
改变本用户cuda环境位置
摘要: vim ~/.bashrc # 注释掉或删除旧的 CUDA 路径 # export PATH=/usr/local/cuda-11.2/bin:$PATH # export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64:$LD_LIBRARY_PATH # 添
阅读全文
posted @ 2024-10-22 14:31 山…隹
阅读(261)
评论(0)
推荐(0)
2024年6月5日
pytorch hub网站(直接调用现成模型)
摘要: https://github.com/pytorch/hub 代码 https://pytorch.org/hub/ 解释
阅读全文
posted @ 2024-06-05 21:45 山…隹
阅读(51)
评论(0)
推荐(0)
2023年12月11日
plt报错
摘要: import matplotlib # matplotlib.use('TkAgg') matplotlib.use('agg')
阅读全文
posted @ 2023-12-11 17:34 山…隹
阅读(21)
评论(0)
推荐(0)
2023年12月4日
tqdm库 进度条
摘要: import tqdm
阅读全文
posted @ 2023-12-04 15:46 山…隹
阅读(6)
评论(0)
推荐(0)
2023年11月10日
矩阵维度变换--einops库
摘要: import einops # 创建一个形状为(batch_size, seq_length, hidden_dim)的张量 tensor = tf.constant([[[1, 2, 3, 4], [5, 6, 7, 8]], [[9, 10, 11, 12], [13, 14, 15, 16]]
阅读全文
posted @ 2023-11-10 15:49 山…隹
阅读(59)
评论(0)
推荐(0)
2023年7月19日
tensorflow2 调试模式打开
摘要: import tensorflow as tf tf.config.experimental_run_functions_eagerly(True) 然后就可以训练时在模型内部打断点,调试内部结构了
阅读全文
posted @ 2023-07-19 21:24 山…隹
阅读(50)
评论(0)
推荐(0)
2023年1月24日
plt 调整子图间距 和裁剪
摘要: ai# 子图间距plt.tight_layout(rect=[0, 0.2, 1, 0.9]) # 自适应图是否重叠,参数是坐标,是子图的覆盖区域,从左0到右1,从下0到上0.9 plt.subplots_adjust(left=None, bottom=None, right=None, top=
阅读全文
posted @ 2023-01-24 23:43 山…隹
阅读(314)
评论(0)
推荐(0)
2022年12月22日
tensorflow2 查看模型的特征层输出
摘要: # 模型加载 MS16_path = './MS_Unet16_split-1_warm(10)_lr(0.01)_Base/fold_4/last_model/Modelsave' MS16_bor_path = './MS16_bor1_split-1_warm(10)_lr(0.01)_Bas
阅读全文
posted @ 2022-12-22 13:42 山…隹
阅读(45)
评论(0)
推荐(0)
2022年11月18日
python使用反函数还原输入
摘要: import numpy as np import matplotlib.pyplot as plt from pynverse import inversefunc def my_tah(x): sigma = -0.1 # base_tah = np.tanh(x) # base_tah = (
阅读全文
posted @ 2022-11-18 19:56 山…隹
阅读(177)
评论(0)
推荐(0)
2022年9月2日
计算机建模验证概率论中的——贝特朗悖论(结论P=1/3)
摘要: import numpy as np import matplotlib.pyplot as plt import random import math x_size = 100000 X = np.linspace(-1,1,x_size) Y1 = +np.sqrt(1-np.square(X)
阅读全文
posted @ 2022-09-02 16:19 山…隹
阅读(198)
评论(0)
推荐(0)
1
2
3
4
5
···
29
下一页
公告