- 博客(104)
- 收藏
- 关注
原创 resnet NPU适配
假设训练时类别数量是通过 classes_set 确定的,这里加载模型后需要同样的类别数量信息。# 修改模型的 forward 方法,移除最后的 'fc' 层,输出 'avgpool' 的结果。print(f"预测的分类结果为: {predicted_class_name}")# 如果需要,可以将导出的模型转换为 OpenVINO 格式。# 假设训练时的类别信息保存在一个文件中,这里简单模拟读取。# 保留到 'avgpool' 的部分。# 导出为 TorchScript 模型。
2025-01-02 18:11:54
336
原创 错误:无法推送一些引用到 ‘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
原创 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
原创 使用微信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 框架写异步接口总报错
AssertionError: Expected a Response, HttpResponse or StreamingHttpResponse to be returned from the view, but received a
2024-07-17 16:41:58
320
原创 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
原创 地平线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
原创 SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
2024-06-24 10:05:09
741
原创 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
原创 linux操作系统下intel驱动 如何查询gpu使用情况
linux操作系统无法直接使用nvidia-smi查看gpu的使用情况 可以使用以下方式来使用intel的gpu查询。
2024-05-23 18:24:29
571
原创 linux 使用intel oneapi报错报错
使用intel oneapi 2024.1.0 时经常报这个错误 因为当前 intel2024.1.0没有在使用 需要改回2024.0.0并安装适配的torch的包来运行。
2024-05-09 15:28:06
392
原创 linux安装PyCharm
安装完成后,你可以通过命令行启动PyCharm,或在你的应用菜单中找到它。第一次运行PyCharm时,它会让你配置一些设置,比如安装主题和插件。你还可以在启动PyCharm后配置它使用特定版本的Python解释器。PyCharm是一个流行的Python开发环境(IDE),由JetBrains提供。有两个版本:社区版(免费)和专业版(付费)。添加PPA到你的系统,更新apt索引,然后安装PyCharm。
2024-04-26 17:59:32
1478
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人