Gao's Blog
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
  • 友链
building_with_espdl-3-failure

building_with_espdl-3-failure

building_with_espdl-3-failure这部分在实践的过程中知识有点杂,因此笔记稍显混乱。 windows中的powershell类似ls的shell语言Get-ChildItem列出当前目录下的所有文件和文件夹:Get-ChildItem递归列出指定目录下的所有文件和文件夹:Get-ChildItem -Recurse C:\MyDocuments筛选特定类型的文件:Get-C
2024-11-07
fyp
building_with_espdl-2-failure

building_with_espdl-2-failure

building_with_espdl-2-failure本人代码正常部分123# 列出当前工作目录中的文件%ls 这部分要注意windows的python库是_.pyd形式,而linux是esp-dl的git库中同名的_.so文件。 1234# 导入必要的库from optimizer import *from calibrator import *from evaluator import
2024-11-05
fyp
building_with_espdl-1-supplement

building_with_espdl-1-supplement

building_with_espdl-1-supplement因为模型优化和量化部分需要X_cal.pkl和y_cal.pkl文件,而在第一部分训练模型时未生成,因此新建一个项目生成pkl。 初版12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
2024-11-05
fyp
building_with_espdl-1-success

building_with_espdl-1-success

building_with_espdl-1-success基本完成原文第1部分。 123456789101112# Import necessary librariesimport tensorflow as tffrom keras.models import Sequentialfrom keras.layers import Conv2D, MaxPooling2D, Flatten, De
2024-11-02
fyp
building_with_espdl-1-failure

building_with_espdl-1-failure

building_with_espdl-1-failure12import pickleimport os 1import tensorflow as tf 12from keras.models import Sequentialfrom keras.layers import Conv2D, MaxPooling2D, Dense, Flatten, Dropout 123impo
2024-11-01
fyp
Working with Your Own Data and Documents in Python

Working with Your Own Data and Documents in Python

Working with Your Own Data and Documents in PythonUsing files in Pythonopen() 函数是 Python 内置的用于打开文件并返回一个文件对象的函数。file_object = open(file_name, mode) mode: 打开文件的模式: **’r’**:读取模式(默认)。 **’w’**:写入模式,会覆盖原有文件
2024-10-24
python
Extending Python with Packages and APIs

Extending Python with Packages and APIs

Extending Python with Packages and APIsUsing functions from a local file导入函数的方式:1、将整个模块导入,然后通过模块名加点号的方式来访问其中的函数。也可以在第一行末尾加as,用别名。 1234import mathresult = math.sqrt(16) # 调用math模块中的sqrt函数print(result)
2024-10-24
python
Basics of AI Python Coding

Basics of AI Python Coding

Basics of AI Python CodingNavigating the learning platformjupyter L2_student通过shift+enter运行代码 Running your first program#+空格表示注释 Data in Pythonprint()图像和声音都是以文本或数字形式处理的“字符串”“””多行字符串“”” type()int 整数 fl
2024-10-23
python
Automating Tasks with Python

Automating Tasks with Python

Automating Tasks with PythonCompleting a task list with AI列表变量list_name = [a, b, c],从0开始计数,通过list_name[n]来访问对应的单个元素。list.append() 增加元素到末尾 list.remove()删除元素。初始化list_name = [] Repeating tasks
2024-10-23
python
Command-line Environment

Command-line Environment

Command-line Environment常用信号 SIGTERM: 终止信号,通常用于请求进程正常退出。 SIGINT: 中断信号,通常由用户按下Ctrl+C产生,用于中断正在运行的进程。 SIGKILL: 杀死信号,强制终止进程,无法被进程捕获或忽略。 SIGSTOP: 停止信号,暂停进程的执行。 SIGCONT: 继续信号,继续被暂停的进程。 SIGALRM: 闹钟信号,用于实现定时器
2024-10-22
shell
1234

搜索

Hexo Fluid