自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(104)
  • 收藏
  • 关注

原创 resnet NPU适配

假设训练时类别数量是通过 classes_set 确定的,这里加载模型后需要同样的类别数量信息。# 修改模型的 forward 方法,移除最后的 'fc' 层,输出 'avgpool' 的结果。print(f"预测的分类结果为: {predicted_class_name}")# 如果需要,可以将导出的模型转换为 OpenVINO 格式。# 假设训练时的类别信息保存在一个文件中,这里简单模拟读取。# 保留到 'avgpool' 的部分。# 导出为 TorchScript 模型。

2025-01-02 18:11:54 336

原创 resnet分类训练

保存类别信息到 classes.txt。1. resnet分类器训练。

2025-01-02 18:10:16 528

原创 intel驱动自带模型测速工具

intel驱动自带模型测速工具

2024-11-07 14:39:12 241

原创 错误:无法推送一些引用到 ‘https://gitee.com/chek_kk/python-electron-app.git‘

emote: Set trace flag d744c487remote: File [bf3ee58b5894ddff67d5218f78f33284e2200419] size 123.887MB, exceeds quota 100MBremote: Please remove the file[s] from history and try againTo https://gitee.com/chek_kk/python-electron-app.git ! [remote rejected

2024-10-24 10:32:39 613

原创 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won‘t be available and only toke

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

2024-10-11 15:10:44 2159 1

原创 error: The following untracked working tree files would be overwritten by merge:handle dialog/ pycac

error: The following untracked working tree files would be overwritten by merge:handle dialog/ pycache /process kndatabase.cpython-310.pycplease move or remove them before you merge.Aborting

2024-10-11 10:26:45 815

原创 selenium.comon.exceptionsSessioMotcreatedException: Message: session not created: This version of Ch

selenium.comon.exceptionsSessioMotcreatedException: Message: session not created: This version of Chromedriver only suports Chrome yersion 127Current browser version is 129.0.6668.90 with binary path C:(Program Files 6oogle Chrome Applicationlchrome.exe

2024-10-11 10:21:32 348

原创 arm架构安装chrome

2024-09-02 21:12:09 1032

原创 django {“detail“:“Authentication credentials were not provided.“}

{"detail":"Authentication credentials were not provided."}

2024-08-22 17:16:14 342

原创 error: The following untracked working tree files would be overwritten by merge: static/__py

error: The following untracked working tree files would be overwritten by merge: static/__pycache__/identitfy_judge_function.cpython-310.pycPlease move or remove them before you merge.Aborting

2024-08-16 15:24:00 905

原创 fatal: The current branch master has no upstream branch.

分支没有设置与远程仓库的关联(upstream branch)。当你试图推送(push)更改到远程仓库但没有指定远程分支时,Git 不知道应该将更改推送到哪个远程分支上,因此会显示这个错误。解决这个问题的方法就是按照错误信息中的提示来操作。使用以下命令可以推送你的。这个错误信息说明你的本地 Git 仓库的。分支到远程仓库(通常命名为。

2024-08-12 15:18:07 1312

原创 删除一个git项目的所有提交历史

git push -f origin master # 或 git push -f origin main。git branch -D master # 或 git branch -D main。git branch -m master # 或 git branch -m main。最后,使用强制推送将这些变更推送到远程仓库。确保你处于要操作的 Git 仓库的根目录。

2024-08-12 11:09:56 662

原创 爬虫在selenium进行登录判断

只需要先获取页面,之后将登陆cookie加入再重新登陆即可。

2024-08-03 23:52:02 147

原创 使用微信app的接口获取nickname时名字乱码

response.encoding = 'utf-8' # 设置响应内容的编码为UTF-8。使用utf-8解码即可获取正常的名字。

2024-07-20 22:52:11 226

原创 pip 国内清华源安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

2024-07-17 17:25:37 439

原创 django 接口文档自动生成

django 接口文档自动生成

2024-07-17 17:12:54 759

原创 django 框架写异步接口总报错

AssertionError: Expected a Response, HttpResponse or StreamingHttpResponse to be returned from the view, but received a

2024-07-17 16:41:58 320

原创 arm操作系统的板子 怎么实现远程控制

安装适配arm操作系统的todesk 程序。

2024-07-12 18:46:40 513

原创 AssertionError: .accepted_renderer not set on Response

AssertionError: .accepted_renderer not set on Response

2024-07-12 10:36:02 299

原创 You cannot call this from an async context - use a thread or sync_to_async.djang使用异步报错解决办法

You cannot call this from an async context - use a thread or sync_to_async.djang使用异步报错解决办法

2024-07-12 10:17:43 300

原创 AttributeError: ‘WSGIRequest‘ object has no attribute ‘data‘[10/Jul/2024 16:45:32] “POST /common_ta

AttributeError: 'WSGIRequest' object has no attribute 'data'[10/Jul/2024 16:45:32] "POST /common_task/process_after_analysis_data HTTP/1.1" 500 67055

2024-07-10 16:49:13 546

原创 RuntimeError: Model class common_task.models.analysis_data_app doesn‘t declare an explicit app_label

RuntimeError: Model class common_task.models.analysis_data_app doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

2024-07-10 16:42:02 186

原创 Forbidden (CSRF cookie not set.)

Forbidden (CSRF cookie not set.)

2024-07-09 21:19:38 454

原创 地平线x3pi板子烧录linux

可以遵循以下链接下载烧录系统与linux镜像,并在新的sd卡里烧录Linux镜像系统并启动。注意烧录的镜像需要destop版本。

2024-06-28 16:24:19 247

原创 linux 修改网络配置

Linux网络配置(/etc/network/interfaces)设置网络接口主要的网络配置工作都可以通过/etc/network/interfaces文件进行,例如设置网卡IP地址(或使用dhcp)、 设置路由信息、配置IP掩蔽、设置默认路由等等。

2024-06-28 16:20:09 874

原创 .xz文件解压缩

要解压缩.xz。

2024-06-28 01:01:00 1156

原创 SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

2024-06-24 10:05:09 741

原创 使用自己的公钥访问服务器,避免频繁输入密码或密钥链接

创建公钥ssh-keygen#查看公钥#将公钥加到服务器之后就可以访问了。

2024-06-18 14:53:30 177

原创 测试端口是否开放

telnet 192.168.192.127 8011

2024-05-31 16:23:08 394

原创 RuntimeWarning: Enable tracemalloc to get the object allocation traceback

RuntimeWarning: Enable tracemalloc to get the object allocation traceback

2024-05-31 15:52:28 461

原创 撤回ctrl +z撤回操作

使用ctrl+y。

2024-05-29 14:58:42 402

原创 python队列调用示例代码

【代码】python队列调用示例代码。

2024-05-29 14:57:49 333 1

原创 linux操作系统下intel驱动 如何查询gpu使用情况

linux操作系统无法直接使用nvidia-smi查看gpu的使用情况 可以使用以下方式来使用intel的gpu查询。

2024-05-23 18:24:29 571

原创 websocket 简单service框架可以接收和传输消息

【代码】websocket 简单service框架可以接收和传输消息。

2024-05-17 17:22:12 174

原创 linux 使用intel oneapi报错报错

使用intel oneapi 2024.1.0 时经常报这个错误 因为当前 intel2024.1.0没有在使用 需要改回2024.0.0并安装适配的torch的包来运行。

2024-05-09 15:28:06 392

原创 前端video标签播放第三方外链地址报错403

前端video标签播放第三方外链地址报错403

2024-05-09 15:16:51 1639

原创 linux安装PyCharm

安装完成后,你可以通过命令行启动PyCharm,或在你的应用菜单中找到它。第一次运行PyCharm时,它会让你配置一些设置,比如安装主题和插件。你还可以在启动PyCharm后配置它使用特定版本的Python解释器。PyCharm是一个流行的Python开发环境(IDE),由JetBrains提供。有两个版本:社区版(免费)和专业版(付费)。添加PPA到你的系统,更新apt索引,然后安装PyCharm。

2024-04-26 17:59:32 1478 1

原创 window 系统安装Linux系统

在一台电脑上安装Linux和Windows的双系统可以让你在同一硬件上运行两种操作系统。

2024-04-26 17:52:21 565

原创 电脑安装双系统

电脑安装双系统

2024-04-26 17:50:11 1522 1

原创 向日葵远程操作ubantu系统时黑屏

向日葵远程操作ubantu系统时黑屏

2024-04-26 17:48:35 2583 1

zh行政区域空间坐标中心

zh行政区域空间坐标中心

2023-10-16

一个简单的会议纪要简易模板

会议记录

2023-02-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除