上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: 1、取数据库最后30个数据 select x,y from sin order by id desc limit 0,30; 2、将数据再反序,横坐标反转 select * from (select x,y from sin order by id desc limit 0,30) as sinxy 阅读全文
posted @ 2022-05-28 20:00 华小电 阅读(297) 评论(0) 推荐(0)
摘要: 在使用set_xticklabels时,报错 UserWarning: FixedFormatter should only be used together with FixedLocator 究其原因,原来set_xticks()和set_xticklabels()需要同时使用,缺一不可 阅读全文
posted @ 2022-05-15 10:36 华小电 阅读(1328) 评论(0) 推荐(1)
摘要: 1. 连接数据库2. 授权并刷新权限grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;flush privileges;3. 查看用户数据 use mysqlselect user 阅读全文
posted @ 2022-05-11 11:37 华小电 阅读(425) 评论(0) 推荐(0)
摘要: 1. 合并,提取音视频 (1)单独提取视频(不含音频流) ffmpeg -i video.mp4 -vcodec copy -an video_silent.mp4 -an:表示不输出音频 (2)单独提取音频(不含视频流) ffmpeg -i input.mp4 -vn -ar 44100 -ac 阅读全文
posted @ 2022-05-03 10:38 华小电 阅读(410) 评论(0) 推荐(0)
摘要: 1. Debian 上安装 sudo apt-get install gerbera 2. 打开UI界面 默认是关闭的,配置文件/etc/gerbera/config.xml,把enabled改为'yes' <config> <server> <ui enabled="no" show-toolti 阅读全文
posted @ 2022-05-02 17:28 华小电 阅读(258) 评论(0) 推荐(0)
摘要: batch_size , seq ,num_layers = 2,3,2 input_size , hidden_size = 2,3 input = torch.randn(batch_size, seq, input_size) h_0 = torch.zeros(num_layers,batc 阅读全文
posted @ 2022-04-27 11:30 华小电 阅读(88) 评论(0) 推荐(0)
摘要: rnn = nn.RNN(input_size=4,hidden_size=3,num_layers=2,batch_first=True, bidirectional = True) input = torch.randn(1,5,4) output , h_n = rnn(input) prin 阅读全文
posted @ 2022-04-25 09:04 华小电 阅读(368) 评论(0) 推荐(0)
摘要: batch_first – If True, then the input and output tensors are provided as (batch, seq, feature) instead of (seq, batch, feature). Note that this does n 阅读全文
posted @ 2022-04-25 08:49 华小电 阅读(786) 评论(0) 推荐(0)
摘要: # Define LSTM class Lstm(nn.Module): def __init__(self, input_size, hidden_size=2, output_size=1, num_layers=1): super().__init__() self.layer1 = nn.L 阅读全文
posted @ 2022-04-07 20:18 华小电 阅读(93) 评论(0) 推荐(0)
摘要: x=np.arange(1,100) y = np.sin(0.1*x) def D_1(x,y): n = len(x) d = np.zeros(n) d[0] = (y[1]-y[0])/(x[1]-x[0]) d[n-1] = (y[n-1]-y[n-2])/(x[n-1]-x[n-2]) 阅读全文
posted @ 2022-03-29 16:10 华小电 阅读(566) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页