上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 运行代码出现找不到Cython模块报错,如下: 安装升级下Cython可以解决: pip3 install --upgrade cython 阅读全文
posted @ 2022-08-10 21:53 BooTurbo 阅读(5136) 评论(0) 推荐(0)
摘要: 在docker容器中测试tracker模型时,报告dbind-WARNING:couldn't register with accessibility bus: an apparmor policy prevents this sender from sending this message to 阅读全文
posted @ 2022-07-31 16:10 BooTurbo 阅读(582) 评论(0) 推荐(0)
摘要: 在docker容器下测试tracker模型的时候,报告Failed to load module "canberra-gtk-module", 一般通过安装canberra-gtk-module 和 canberra-gtk3-module 就可以解决问题。 Enjoy it! 阅读全文
posted @ 2022-07-31 15:57 BooTurbo 阅读(3798) 评论(0) 推荐(0)
摘要: 我们在Docker容器中运行程序,有的时候需要显示容器中的图像,或在容器中运行一些图形界面的软件、调用摄像头等,而Docker采用的是命令行的工作模式,那么docker容器中的输出图像等如何在宿主屏幕上显示呢,可以采用文件挂载或者网络通信的方式。 1、在本地宿主机器上安装X11界面工具,一般Linu 阅读全文
posted @ 2022-07-31 13:31 BooTurbo 阅读(2616) 评论(0) 推荐(0)
摘要: 在分类问题中常用到交叉熵损失函数 CrossEntropyLoss,有时候还能看到NLLLoss损失,两个损失是有关联的。 1、首先,随机生成一个3 * 3的 tensor,假设该张量 test_n 是我们的神经网络的输出,一行相当于一个样本的预测结果,如下: 2、使用Softmax处理生成的ten 阅读全文
posted @ 2022-07-18 18:34 BooTurbo 阅读(1028) 评论(0) 推荐(0)
摘要: Ubuntu下总是使用终端命令查看CPU、GPU温度有点麻烦,利用自带的SystemMonitor来显示这些信息较为简单。 1、添加仓库进行安装 sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor sudo apt-get upd 阅读全文
posted @ 2022-07-08 10:23 BooTurbo 阅读(3170) 评论(1) 推荐(0)
摘要: 在跑网络的时候,报错TypeError:can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host_memory first. 错误在于:train_loss.append 阅读全文
posted @ 2022-06-04 12:55 BooTurbo 阅读(20509) 评论(0) 推荐(0)
摘要: 在docker容器中训练网络,由于创建容器时默认的共享内存shared memory太小,导致程序报错: ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared me 阅读全文
posted @ 2022-06-04 11:21 BooTurbo 阅读(5869) 评论(0) 推荐(1)
摘要: 在处理数据集训练神经网路时,运到protoc版本相关的报错,If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. 阅读全文
posted @ 2022-06-04 09:39 BooTurbo 阅读(26705) 评论(2) 推荐(1)
摘要: 使用VS Code编辑器修改调试代码很方便,将它与Docker容器结合起来更会大幅提升开发效率。其实VS Code连接本地主机上的Docker容器要比远程连接服务器上的Docker容器容易的多。 1、打开VS Code安装docker扩展插件。 安装完成后,会显示Docker图标,点击图标会列出本地 阅读全文
posted @ 2022-05-29 12:27 BooTurbo 阅读(13881) 评论(0) 推荐(2)
上一页 1 2 3 4 5 6 7 ··· 9 下一页