12 2024 档案

ESP32+micropython+TB6600控制器+42步进电机【续】 wifi +udp遥控
摘要:参照合集 “ESP32+micro python+编程” 内容。继续增加功能 思路: PC机(上位机)的网络调试助手(Net Assist)发送指令,ESP接收指令,控制步进电机 将 ESP32+micropython+TB6600控制器+42步进电机 和 eps32+micro python+ w 阅读全文

posted @ 2024-12-31 08:38 辛河 阅读(75) 评论(0) 推荐(0) 编辑

eps32+micro python+ wifi UDP方式接收和发送数据
摘要:参考王铭东 老师的教程 https://www.itprojects.cn/coursecenter-hardware.html 软件+硬件 @ MicroPython+ESP32相关@课件@五、PC远程控制ESP32 LED灯 增加功能: 接收到无效指令,返回提示信息 # 整体流程 # 1. 链接 阅读全文

posted @ 2024-12-31 08:20 辛河 阅读(84) 评论(0) 推荐(0) 编辑

ESP32+micropython+TB6600控制器+42步进电机
摘要:TB6600控制器的拨码开关设置 SW1- OFF SW2-ON SW3-OFF SW4-ON SW5-ON SW6-OFF 步进电机需要考虑带负载加速过程。以下程序是空载时正常运行的代码,反复调整 脉冲宽度。继续探索,仅供参考,非专业 import machine import time # TB 阅读全文

posted @ 2024-12-31 06:44 辛河 阅读(103) 评论(0) 推荐(0) 编辑

第三章 3.12 dropout 和 正则化 克服过拟合
摘要:代码: # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch 阅读全文

posted @ 2024-12-16 20:52 辛河 阅读(20) 评论(0) 推荐(0) 编辑

第三章 3.10 构建更深的神经网络 比较有0、1、2隐含层的神经网络
摘要:比较有0、1、2隐含层的神经网络,发现层多时,过拟合 # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Comput 阅读全文

posted @ 2024-12-16 16:38 辛河 阅读(14) 评论(0) 推荐(0) 编辑

第三章 3.9 在训练过程中修改学习率
摘要:Learning_rate_annealing.ipynb # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Com 阅读全文

posted @ 2024-12-16 13:58 辛河 阅读(21) 评论(0) 推荐(0) 编辑

第三章:3.8.1 绘制各层参数分布图 hist
摘要:Chapter03/Varying_learning_rate_on_scaled_data.ipynb 绘制 各层参数分布图 # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://git 阅读全文

posted @ 2024-12-16 12:47 辛河 阅读(18) 评论(0) 推荐(0) 编辑

第三章 3.7 优化器的影响
摘要:代码: # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch 阅读全文

posted @ 2024-12-16 10:41 辛河 阅读(5) 评论(0) 推荐(0) 编辑

第三章 3.6 批大小的影响
摘要:第三章 3.4 训练神经网络 # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-wi 阅读全文

posted @ 2024-12-16 10:29 辛河 阅读(14) 评论(0) 推荐(0) 编辑

第三章 3.4 训练神经网络
摘要:pytorch 官网:https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module 代码: # https://github.com/PacktPublishing/Modern-Computer-Vis 阅读全文

posted @ 2024-12-15 21:56 辛河 阅读(28) 评论(0) 推荐(0) 编辑

第三章 3.3 使用pytorch的数据集
摘要:比较复杂,可以将代码放在AI(温馨一眼)中做解读 代码: # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Comp 阅读全文

posted @ 2024-12-13 12:01 辛河 阅读(15) 评论(0) 推荐(0) 编辑

第三章 3.1 表示图像 理解灰度图、RGB图和数组的关系
摘要:图片与脚本文件放在一个文件夹内,同级。 图片网上找一个就可以了。 # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern- 阅读全文

posted @ 2024-12-13 11:56 辛河 阅读(42) 评论(0) 推荐(0) 编辑

第二章 2.5 保存和加载文件中Pytorch模型
摘要:训练并保存模型参数到文件 # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with 阅读全文

posted @ 2024-12-12 19:12 辛河 阅读(20) 评论(0) 推荐(0) 编辑

第二章 2.4使用序贯方法构建神经网络nn.Sequential() 及打印神经网络模型摘要
摘要:# https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch #### 阅读全文

posted @ 2024-12-12 16:24 辛河 阅读(25) 评论(0) 推荐(0) 编辑

第二章 2.3 使用Pytorch构建神经网络
摘要:# https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch #### 阅读全文

posted @ 2024-12-12 14:19 辛河 阅读(43) 评论(0) 推荐(0) 编辑

第二章 2.3.1 定义数据集训练神经网络
摘要:定义数据集训练神经网络# https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with-P 阅读全文

posted @ 2024-12-12 14:07 辛河 阅读(24) 评论(0) 推荐(0) 编辑

《Pytorch 最全入门介绍,Pytorch入门看这一篇就够了》学习
摘要:Pytorch 最全入门介绍,Pytorch入门看这一篇就够了 https://www.cnblogs.com/xfuture/p/17593872.html # 5.1 数据加载和预处理 # 首先,我们需要加载数据并进行预处理。我们将使用torchvision包来下载CIFAR10数据集,并使用t 阅读全文

posted @ 2024-12-12 14:06 辛河 阅读(236) 评论(0) 推荐(0) 编辑

第一章: PyTorch计算机视觉实战:目标检测、图像处理与深度学习
摘要:第一章 # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch # https://github.com/PacktPublishing/Modern-Computer-Vision-with-PyTorch 阅读全文

posted @ 2024-12-12 14:06 辛河 阅读(127) 评论(0) 推荐(0) 编辑

ESP32+micropython+作为WiFi热点与PC通信+TCP/IP协议作为服务器接收并返回数据
摘要:ESP32+作为WiFi热点+接收并返回数据 ESP32代码 # ESP32 作为AP # 作为服务器 接收数据 并echo # ESP32 作为AP 即wifi热点 import network import utime # 配置ESP32为AP模式 ssid = 'ESP32_AP' passw 阅读全文

posted @ 2024-12-04 19:19 辛河 阅读(323) 评论(0) 推荐(0) 编辑

ESP32+micropython + 多线程
摘要:多线程编程举例 1、无参数 2、有参数,元组方式传递参数 import _thread import time def testThread(): while True: print("Hello from thread") time.sleep(2) def testParThread(arg1, 阅读全文

posted @ 2024-12-04 14:19 辛河 阅读(201) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示