当前位置:网站首页>报错【项目报错】
报错【项目报错】
2022-07-24 15:15:00 【hei_hei_hei_】
No module named ‘XXX’
原因:没有安装库
解决:
pip install XXX
ModuleNotFoundError: No module named utils.util utils is not a package
解释:utils是自己写的库,要导入自己的库里面的模块,需要在utils文件夹下新建一个名称为__init__.py文件
TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above.
原因:没有安装tensorboard
解决:
pip install tensorboard
No module named ‘past’
解决:安装future模块
pip install future
Remote file /home/chenkaixuan/projects/ is mapped to the local path D:\PycharmProjects\D-LSG-Video-Caption-main\ and can’t be found. You can continue debugging, but without the source.
- 说明:远程debug的时候next step之后出现这个界面,然后好几次都跳转到一个文件data.py,我觉得是导入库的时候出现了重复(仅猜测)
- 解决:不管他,继续debug就好啦
OSError: Unable to open file (truncated file: eof = 724698112, sblock->base_addr = 0, stored_eof = 15142273088)
- 背景说明:改了一些网络的代码之后,再次执行train_debug.py出现这样的读取文件错误。改之前执行过,并没有报错。
- 报错原因:在网上找了一下,大致意思是,之前下载过文件,没有下载成功,导致读取文件错误。想到改网络的时候,有文件没有自动上传服务器,所以当时傻了吧唧的重新上传了一遍项目,但是数据太大导致上传很慢又想到可以单独上传改动的文件,所以上传到一半就取消了,这可能就是导致文件下载错误的原因吧。
- 解决:重新上传一遍项目或者数据
UserWarning: This overload of nonzero is deprecated
- 报错原因:版本问题,使用
torch.nonzero()函数在新版本之后最好加上as_tuple=True/False参数。如果为True,表示返回tuple,False返回tensor。一般来说我们都是需要返回tensor的。 - 解决:
torch.nonzero(input, as_tuple = False)
127.0.0.1拒绝访问
- 背景说明:3月份的时候使用PyCharm远程连接服务器跑完代码打开过tensorboard,是正常的。今天改了一部分代码(主要是网络部分)突然就127.0.0.1拒绝访问,而且打开隧道的时候也是没有反应,打不开,表现在Start/Stop下面的按钮点击之后没反应

- 解决:
(1)暴力做法:将这个隧道关了,重新建一个。也就是重新设置环境的时候发现配置里需要填写服务器的端口号,联想到上次建立隧道之后服务器的端口号就改了,导致tensorboard无法连接到服务器。
(2)重新设置一下连接的设置。
边栏推荐
- 打假Yolov7的精度,不是所有的论文都是真实可信
- Wildfire STM32 domineering, through the firmware library to achieve water light
- C# SQLite Database Locked exception
- 25. From disk to file
- Research Summary / programming FAQs
- Decrypt "sea Lotus" organization (domain control detection and defense)
- Mysql库的操作
- Here comes the problem! Unplug the network cable for a few seconds and plug it back in. Does the original TCP connection still exist?
- Preparation of mobile end test cases
- Strongly connected component
猜你喜欢

Vector introduction and underlying principle

Existence form and legitimacy of real data in C language (floating point number)

Operation of MySQL Library

Outlook tutorial, how to create tasks and to DOS in outlook?

Huawei wireless device configuration wpa2-802.1x-aes security policy

How to set packet capturing mobile terminal

2022 RoboCom 世界机器人开发者大赛-本科组(省赛)-- 第三题 跑团机器人 (已完结)

JSON file editor

Deep learning 1 perceptron and implementation of simple back propagation network

Learning and thinking about the relevant knowledge in the direction of building network security knowledge base
随机推荐
spark:指定日期输出相应日期的日志(入门级-简单实现)
Which securities company is good at opening an account with flush? Excuse me, is it safe to open an account with mobile phone or stock?
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)RC-u4 攻略分队 (已完结)
The accuracy of yolov7 in cracking down on counterfeits, not all papers are authentic
Explain the edge cloud in simple terms | 2. architecture
kali简洁转换语言方法(图解)
Decrypt "sea Lotus" organization (domain control detection and defense)
pytorch with torch.no_ grad
Vector introduction and underlying principle
25. From disk to file
【OpenCV 例程300篇】238. OpenCV 中的 Harris 角点检测
String application - calculate the longest true prefix of a string
哈夫曼树(最优二叉树)
Use of keywords const, volatile and pointer; Assembly language and view of register status
Existence form and legitimacy of real data in C language (floating point number)
【USENIX ATC'22】支持异构GPU集群的超大规模模型的高效的分布式训练框架Whale
C # exit login if there is no operation
打假Yolov7的精度,不是所有的论文都是真实可信
2022 RoboCom 世界机器人开发者大赛-本科组(省赛) CAIP 完整版题解
关于构建网络安全知识库方向相关知识的学习和思考