文章

菜谱、技术笔记和生活记录。

训练pytorch神经网络识别按键声音

import torch import pandas as pd # 定义神经网络类 class AudioClassifier(torch.nn.Module): def __init__(self, batch_size, in_features): super(AudioClassifier, self).__...

谱分析软件pase在windows下的安装、使用和解BUG

1、新建一个目录E:\development\pase2、新建一个venv的环境,保证不污染主仓库cd .\pase\ python -m venv venv .\venv\Scripts\Activate.ps1 3、安装pase软件本身https://github.com/sebastianmenze/Pytho...

使用M5StickCPlus做频谱分析

1、基础的代码在这里: https://github.com/KKQ-KKQ/m5stickc-audiospectrum/tree/master 2、我自己的稍后会上传3、屏幕宽高的修改:4、斜率图:在bar图渲染这里,可以看到经过FFT之后的数据用这种方式就可以看到8个频段的peak值了我干了第二件事就是计算斜率...

nas上mqtt的调教问题

/var/packages/mosquitto/var目录是在这里然后tail -f log1718334159: New connection from 192.168.50.69:63007 on port 1883. 1718334159: New client connected from 192.168.5...

测试Chrome 127版本内置的大模型

1、下载: https://www.google.com/chrome/dev/ 2、打开选项chrome://flags/#optimization-guide-on-device-model3、打开选项chrome://flags/#prompt-api-for-gemini-nano https://devel...

远程服务器上安装gitea管理开源项目

1、hub上的地址 https://hub.docker.com/r/gitea/gitea 2、新建一个容器 https://docs.gitea.com/installation/install-with-docker ports: - "3000:3000" - "222:22"3、配置nginx和dns然后到...