debug
error
3D_DLW
这个作者很懒,什么都没留下…
展开
-
Python不换行print在终端中不显示
当使用不换行print即后立即关闭标准输出则print的内容不会显示在正常的终端上(例外是 PyCharm 中的终端能够正常显示)。原创 2024-03-04 20:51:24 · 667 阅读 · 0 评论 -
PointTransformer编译pointops_cuda报错fatal error: THC/THC.h: No such file or directory
尝试运行PointTransformer代码, 编译pointops_cuda的时候报错原创 2022-11-27 20:34:27 · 5030 阅读 · 10 评论 -
已经安装vs依然显示error: Microsoft Visual C++ 14.0 or greater is required.
在 Windows 下的 Conda 环境中安装需要编译的包在已经安装vs的情况下依然报错error: Microsoft Visual C++ 14.0 or greater is required.原创 2022-11-17 16:28:19 · 3403 阅读 · 5 评论 -
ecognition多尺度分割生成的多边形不完整
问题使用eCognition多尺度分割(multiresolution segmentation)发现运行速度比正常要快, 并且分割结果存在问题, 如图:大量面积确实多边形, 只有少数地方有多边形解决方案发现是勾选了这一项的问题, 只要不进行空值转换就可以正常进行分割....原创 2022-04-08 22:37:04 · 777 阅读 · 1 评论 -
安装了VS依然显示Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“
报错信息Python 使用 pip install 安装包时报错:error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/环境按道理只要安装了Visual Studio并且安装了"使用C++的桌面开发"就可以正常运行。但我安装后依旧不行。临时原创 2022-04-05 17:00:39 · 2766 阅读 · 0 评论 -
Error: 1307. Verify that you have sufficient privileges to modify the security permissions for this
安装一个msi包installer-windows.msi,报错信息如下:Could not set file security for file'C:\Users\Administrator\AppData]Roaming\Microsoft\Installer\'Error: 1307. Verify that you have sufficient privileges to modify the security permissions for this fil原创 2022-01-15 13:48:29 · 3020 阅读 · 2 评论 -
解决PyEddyTracker计算地转流报错
报错信息使用py_eddy_tracker中add_uv_lagerloef()时报错:numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)No implementation of function Function(<built-in function sub>) found for signature: >>> sub(UniTuple(原创 2022-01-10 19:26:46 · 929 阅读 · 0 评论 -
error C2065: “pop_t”: 未声明的标识符
报错使用pcl点云库时调用flann报错xxx\PCL 1.12.1\3rdParty\FLANN\include\flann\algorithms\dist.h(522,80): error C2065: “pop_t”: 未声明的标识符原因参照https://github.com/flann-lib/flann/issues/386这个BUG是1.8就有的, 现在1.12.1了怎么还没修?解决方案将503行的代码移动到475行...原创 2022-01-05 19:00:49 · 1530 阅读 · 3 评论 -
module ‘numpy‘ has no attribute *
AttributeError: module 'numpy' has no attribute 'dtype'...AttributeError: module 'numpy' has no attribute 'array'昨天环境出了点问题重装了, 本来想着应该都装好了, 结果一跑出来这些东西In [1]: import numpyIn [2]: numpyOut[2]: <module 'numpy' (namespace)>In [3]: numpy.array--原创 2021-12-28 15:25:38 · 8110 阅读 · 0 评论 -
pytorch数值溢出的几种原因
错误信息一般的错误表述如下:xxx.py:xxx: RuntimeWarning: overflow encountered in reducexxx.py:xxx: RuntimeWarning: invalid value encountered in true_divide...xxx.cu:xxx: block: [xxx,0,0], thread: [0,0,0] Assertion `input_val >= zero && input_val <= xxx原创 2021-11-11 11:35:52 · 8233 阅读 · 3 评论 -
RuntimeError: cuda runtime error (801) : operation not supported at ..
错误信息THCudaCheck FAIL file=..\torch/csrc/THCudaChgeneck FAeric/StoragITHL Cuefile=Sha.da.\rCinhtoregcch.k cpp /csrcline=24F/gAI9 errL file=oe..\tor=nr801 : eoric/Stopch/ceration not susrcpporte/genderic/StorageSharing.cpp rageSharing.cpp line=249 error=80原创 2021-11-08 23:10:55 · 3659 阅读 · 2 评论 -
pytorch 自定义 Dataset 出现错误 NotImplementedError: Variable is not picklable
参考: https://github.com/pytorch/vision/issues/689报错信息Traceback (most recent call last): File "G:/EddyPredict/train.py", line 108, in <module> for batch in training_loader: File "D:\Miniconda3\envs\dl\lib\site-packages\torch\utils\data\data.原创 2021-11-04 10:19:33 · 1363 阅读 · 0 评论 -
Error: invalid path ‘xxx‘ fatal: unable to checkout working tree
错误信息在Windows下git clone 报错> git clone https://github.com/redouanelg/EddyNetCloning into 'EddyNet'...remote: Enumerating objects: 177, done.remote: Total 177 (delta 0), reused 0 (delta 0), pack-reused 177Receiving objects: 100% (177/177), 5.47 MiB原创 2021-10-21 22:42:08 · 2634 阅读 · 0 评论 -
pycharm Failed to connect to github.com port 443: Timed out
问题在pycharm中执行github相关操作都会显示错误Failed to connect to github.com port 443: Timed out解决使用浏览器发现必需打开代理才能访问github, 故有可能是pycharm没有设置代理.在设置中选择自动代理模式....原创 2021-10-19 21:21:54 · 3561 阅读 · 4 评论 -
‘EddiesObservations‘ object has no attribute ‘filled‘
问题最近用到了py-eddy-tracker, 参照官方文档进行漩涡区域填充时发现调用py_eddy_tracker.observations.observation.EddiesObservations.filled 报错:'EddiesObservations' object has no attribute 'filled'尝试filled函数的官方文档查看官网提供的源码发现是有filled函数的,但是自己本地的库中没有.检查版本发现本地版本为3.2.0, 官方文档版本为3.5.0&g原创 2021-10-19 20:55:49 · 704 阅读 · 1 评论 -
x11vnc 启动失败 XOpenDisplay failed.
尝试开启VNC:x11vnc -rfbport 5900 -rfbauth ~/.vnc/passwd -display :1 -forever -bg -repeat -nowf报错:13/08/2021 17:18:58 passing arg to libvncserver: -rfbport13/08/2021 17:18:58 passing arg to libvncserver: 590013/08/2021 17:18:58 passing arg to libvncserve原创 2021-08-13 17:34:37 · 13150 阅读 · 2 评论 -
记录一次 NaN in Loss 的解决过程
前言训练的模型经常数十个epoch后Loss中出现NaN,困扰了很久终于解决了,记录一下。检测我通常会在计算loss.backward()后optimizer.step()前,添加条件判断是否出现NaN:if loss != loss: raise Exception('NaN in loss, crack!')定位输出参数和梯度同样放在loss.backward()后optimizer.step()前。用于打印网络所有层参数和梯度的最大和最小值,仅在Debug时使用:# pri原创 2021-08-08 10:37:33 · 5307 阅读 · 0 评论 -
Intel RealSense: No Frames Received, depth stream start failure
问题今天刚拿到设备,上官网下载了Intel.RealSense.Viewer.exe测试,发现设备RGB相机、陀螺仪运行正常,但是深度相机一直显示No Frames Received并弹出Severity: Error, Description: Depth stream start failure。解决方案先停止相机运行,将深度相机分辨率设置为与RGB相机相同即可。...原创 2021-08-02 19:43:07 · 3879 阅读 · 2 评论 -
MobaXterm Xwindows打开应用程序模糊、缩放比例不对
由于我windows应用了125%系统缩放,导致MobaXterm原创 2021-07-23 11:19:29 · 2911 阅读 · 2 评论 -
pytorch BatchNorm1d 输入二维和三维数据的区别
在阅读KPConv-PyTorch源码时,发现其对torch.nn.BatchNorm1d进行了封装。class BatchNormBlock(nn.Module): def __init__(self, in_dim, use_bn, bn_momentum): """ Initialize a batch normalization block. If network does not use batch normalization, replace with原创 2021-07-19 19:21:59 · 3570 阅读 · 0 评论 -
pytorch DataParallel 数据对象分割问题
报错信息:RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!问题原因:传入模型的数据格式为对象(object),原创 2021-06-16 16:25:16 · 1485 阅读 · 0 评论 -
AttributeError: module 'umap' has no attribute 'UMAP'
问题:Traceback (most recent call last): File "C:\Users\Admin\Desktop\Real-Time-Voice-Cloning-master\toolbox\__init__.py", line 228, in vocode self.ui.draw_umap_projections(self.utterances) File...原创 2020-03-11 20:52:08 · 6331 阅读 · 3 评论 -
nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)
在尝试训练StyleGAN2的时候报错:nvcc "D:\Anaconda3\lib\site-packages\tensorflow\python\_pywrap_tensorflow_internal.lib" --gpu-architecture=sm_75 --use_fast_math --disable-warnings --include-path "D:\Anaconda3\li...原创 2020-02-08 22:38:09 · 4358 阅读 · 0 评论 -
styleGAN2 MemoryError: Unable to allocate 0 bytes for an array with shape (1073741824, 0)
错误信息Traceback (most recent call last): File "C:/Users/78753/Desktop/stylegan2encoder/project_images.py", line 129, in <module> main() File "C:/Users/78753/Desktop/stylegan2encoder/proje...原创 2020-02-07 00:14:03 · 5392 阅读 · 0 评论 -
ValueError: 3-dimensional arrays must be of dtype unsigned byte, unsigned short, float32 or float64
执行plt.imshow(im)的时候因为im的dtype=int导致出现ValueError: 3-dimensional arrays must be of dtype unsigned byte, unsigned short, float32 or float64使用uint8即im.astype(np.uint8)即可...原创 2019-08-11 03:13:55 · 2053 阅读 · 1 评论