解决问题
Shadownow
北京交通大学软件工程专业在读大学生
展开
-
RuntimeError:one of the variables needed for gradient computation has been modified by an inplace
报错内容RuntimeError:one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [128, 64, 8, 8]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly det原创 2021-12-13 22:39:36 · 1678 阅读 · 2 评论 -
解决方法:Makefile:77: recipe for target ‘darknet‘ failed make: *** [darknet] Error 1
想使用opencv运行yolo3,修改opencv=1后,make文件时报出了错误如下。搜了很多解决办法,大家注意不要只看标题的错误,要去看具体是什么错误。理性分析我这个错误后,发现是cuda的问题,于是我在安装了cuda9.0后,问题即可解决了!/usr/bin/ld: warning: libcudart.so.9.0, needed by /usr/local/lib/libopencv_core.so, not found (try using -rpath or -rpath-link)/u原创 2021-07-26 16:26:42 · 1532 阅读 · 0 评论 -
代码调试问题记录
1.conv2d_v2() got an unexpected keyword argument ‘filter’把filter改成filters2.tf.placeholder() is not compatible with eager execution在文件前面加:tf.compat.v1.disable_eager_execution()3.TypeError: dropout_v2() got an unexpected keyword argument ‘keep_prob’原创 2021-07-22 15:05:23 · 3052 阅读 · 8 评论 -
Ubuntu16.04安装torch
1、本地下载自己对应的版本,并上传到linux上下载地址:https://download.pytorch.org/whl/cpu/torch_stable.html我下载的版本是这个2、放到linux的home目录下,并执行以下命令pip3 install torch-0.4.0-cp35-cp35m-linux_x86_64.whl安装成功!...原创 2021-04-06 11:21:51 · 219 阅读 · 0 评论 -
关于pip安装出现的一些问题
1、版本升级You are using pip version 8.1.1, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.解决方案:python3 -m pipinstall -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip2.安装完成后,输入pip3原创 2021-04-06 11:02:38 · 520 阅读 · 2 评论 -
Error: A JNI error has occurred, please check your installation and try again Exception in thread “m
报错信息如下:Error: A JNI error has occurred, please check your installation and try againException in thread “main” java.lang.UnsupportedClassVersionError: a has been compiled by a more recent version of the Java Runtime (class file version 59.0), this versio原创 2021-03-30 15:13:33 · 401 阅读 · 0 评论 -
Linux非root用户安装Mysql
亲试有用!1、下载包,我用的这个版本。链接:https://downloads.mysql.com/archives/community/2、把这个包传到云服务器端。可以再Xftp中直接拖拉上传,我传到了自己的用户目录下,即/home/zhangying/下3、解压:执行命令tar -zxvf mysql-5.6.15-linux-glibc2.5-x86_64.tar.gz4、打开解压后的文件夹cd mysql-5.6.15-linux-glibc2.5-x86_645、执行以下两原创 2021-03-29 21:42:04 · 853 阅读 · 5 评论 -
Maven - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test
在网上找的好多解决办法都是跳过测试,但是这样不大好,会有隐患,于是自己研究了解决方法。可以打开如图,这个txt里面有具体写错误内容我的错误内容是:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use…解决办法是,将这两个文件放在同一个路径下:然后就可以启动了!...原创 2021-03-29 15:03:11 · 228 阅读 · 0 评论 -
程序包it.sauronsoftware.jave不存在
idea中,准备在maven中package一下,结果出现这个错误,解决方法如下:1、首先你需要下载下面这个包,放在自己的本地2、下载完后,需要把这个包引入到maven的包库中,操作如下:(1)打开本地命令行,切换目录到自己的maven bin目录下:(2)输入以下指令:注意要把java包的路径换成你自己电脑上的路径mvn install:install-file -Dfile=F:\idea\final\jave-1.0.2.jar -DgroupId=it.sauronsoftware -原创 2021-03-29 14:59:29 · 8351 阅读 · 2 评论 -
java.lang.OutOfMemoryError: Failed to allocate a 1920012 byte allocation with 207488 free bytes and
安卓加载动图时,放在真机上闪退。解决方法如下:在manifest.xml中加入下面两行即可。android:largeHeap="true"android:hardwareAccelerated="false"原创 2021-03-26 11:03:31 · 650 阅读 · 0 评论 -
解决方法:Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found
按照网上的办法指定了版本还是不行后来点file-invalidate cashes就行了原创 2021-03-18 09:21:10 · 309 阅读 · 0 评论 -
Linux上文本有换行,传到windows下无换行解决方法
1.vim 打开linux下的txt文件2.输入 :set ff=dos3输入 :x就可以了~原创 2021-03-12 11:40:28 · 462 阅读 · 0 评论 -
取tensor中变量值
原本:提取:前面加个float()括起来就可以了。原创 2021-03-12 10:38:04 · 519 阅读 · 2 评论 -
_tkinter.TclError: no display name and no $DISPLAY environment variable解决方法
试了各种配置都不行这个方法肯定可以!import matplotlibmatplotlib.use('Agg')import matplotlib.pyplot as plt原创 2021-03-06 16:51:43 · 701 阅读 · 0 评论