遇到的问题
Asuyio
这个作者很懒,什么都没留下…
展开
-
cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-1syr35c1/opencv/modules/imgcodecs/src/loadsave.cpp:753:
root@nxin:~# pip uninstall opencv-python-headlessWARNING: Skipping opencv-python-headless as it is not installed.root@nongxin:~# pip install -U opencv-python==3.4.4.19不再报错参考:解决问题:cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-jhawztrk/opencv/module.原创 2021-10-10 22:47:06 · 2407 阅读 · 0 评论 -
报错FileNotFoundError
Traceback (most recent call last): File "<input>", line 1, in <module> File "D:\Program\JetBrains\PyCharm 2019.1.3\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars.原创 2021-08-11 12:58:38 · 3299 阅读 · 6 评论 -
nohup: 无法运行命令‘Command‘: 没有那个文件或目录
使用下面代码nohup `python projects/SparseRCNN/train_net.py --num-gpus 2 --config-file projects/SparseRCNN/configs/sparsercnn.res50.100pro.3x.yaml` &报错:-- Process 1 terminated with the following error:Traceback (most recent call last): File "/r...原创 2021-04-21 22:06:58 · 2690 阅读 · 1 评论 -
报错FloatingPointError: Loss became infinite or NaN at iteration=1099!
报错FloatingPointError: Loss became infinite or NaN at iteration=1099![04/01 15:05:09] d2.engine.train_loop ERROR: Exception during training:Traceback (most recent call last): File "/root/detectron2/detectron2/detectron2/engine/train_loop.py", line 138原创 2021-04-01 18:39:27 · 2965 阅读 · 0 评论 -
将Linux服务器上的mysql数据库表结构和数据导出
首先进入mysql的目录下,这里是 /etc/mysql然后使用mysqldump命令mysqldump -u用户名 -p 数据库名> /目标路径/导出文件名.sql;eg:目标路径下查看生成的.sql文件原创 2020-06-14 14:33:36 · 633 阅读 · 0 评论 -
mysql 设置如果字段为1则显示“已完成”,字段为0则显示“未完成”
查询option表中的flag字段,若flag=1,表示已完成,若flag=0,表示未完成。SQL语句如下:select option_no, (case when flag=1 then '已完成' else '未完成' end) as flag from option;原创 2020-06-02 11:56:21 · 5540 阅读 · 0 评论 -
数据库 ERROR 1215 (HY000): Cannot add foreign key constraint错误的解决
首先确定以下:0.外键字段的参照字段必须是外表的主键。1.保证字段类型、长度一致。修改字段类型alter table 表名 modify 字段名 新数据类型;比如:将user表的id列的原数据类型int(10)类型修改为int(10)unsigned类型alter table user modify int unsigned;2.主表与外表的引擎一致。查看引擎show create table 表名;3.保证字段的字符集一致。查看MySQL支持的...原创 2020-05-24 16:42:44 · 775 阅读 · 0 评论