
Python
Python
搞图形学的渣渣
这个作者很懒,什么都没留下…
展开
-
hugging face 预训练模型缓存目录修改
设置hugging face cache目录原创 2023-12-23 21:16:44 · 1340 阅读 · 1 评论 -
OpenEXR.cpp:37:19: fatal error: ImfIO.h: 没有那个文件或目录
OpenEXR安装问题原创 2022-08-25 16:30:20 · 859 阅读 · 0 评论 -
Python中排序函数sort/sorted的坑:cmp函数中return True/False排序不起作用
Python sort/sorted 自定义排序cmp函数如果return True/False,排序函数不起作用,必须return 带符号数字原创 2023-12-23 17:12:27 · 596 阅读 · 1 评论 -
Error: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same
@[TOC](RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same)pytorch使用中出现以上问题解决办法以上错误是因为部分网络部分模块用列表list放置,没有被nn.ModuleList()处理;导致pytorch无法识别,并放到cuda上;利用nn.ModuleList()可解决:class OneModule(nn.Module):de原创 2020-12-11 22:03:56 · 789 阅读 · 1 评论 -
linux rm命令无法删除目录,显示Device or resource busy:
linux rm命令无法删除目录,显示Device or resource busy:lsof +d 待删除的目录kill -9 上述命令列出的进程号参考:https://www.jianshu.com/p/0e42a76fc90c原创 2020-10-20 15:09:38 · 3225 阅读 · 0 评论 -
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device存储空间不够存储空间不够第一种可能情况是anaconda或者python所在的位置没有存储空间了,导致没有地方存放。这种情况,我都是重新安装anaconda到一个有足够大的存储空间的目录。第二种可能情况是tmp目录没有存储空间了,ubuntu系统可以通过修改临时目录解决 export TMPDIR=tmp路径(可以临时创建一个原创 2021-07-19 12:00:29 · 1041 阅读 · 1 评论 -
ubuntu18.04服务器安装pytorch=0.4.1
ubuntu18.04服务器安装pytorch=0.4.1, torchvision=0.2.1.pip3 install torch0.4.1 torchvision0.2.1 -f https://download.pytorch.org/whl/torch_stable.html --user参考网址:https://pytorch.org/get-started/previous-versions/原创 2020-10-20 19:36:01 · 736 阅读 · 0 评论