logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'(在python命令后面加上 --gpu_ids -1)

1. 问题:AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'运行命令python train.py --data_dir sample_data时,出现上述错误。2. 参考:https://github.com/KupynOrest/DeblurGAN/issues/74从这里知道了下一个链...

java-练习2:MobilePhone

1,MobilePhone.javaimport java.util.*;public class MobilePhone {public static void entrance() {Scanner sc=new Scanner(System.in);int act=sc.nextInt();//输入的指令数字int s=sc.nextIn...

Google docs/slides的下载

https://blog.csdn.net/mzpmzk/article/details/79318029Google Drive/Docs/Presentation 的下载

python:urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>

参考:https://blog.csdn.net/wu_xin1/article/details/109625029urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>1. 报错:python:urllib.error.URLError: <urlopen error [Errno 11004] getadd

ModuleNotFoundError: No module named 'cv2' (安装cv2)

1. 问题:ModuleNotFoundError: No module named 'cv2' (Pycharm 中import cv2出现错误)2. 解决:官网安装说明:https://pypi.org/project/opencv-python/

python:np.vstack, np.hstack

一、np.vstack(tup)使用沿着竖直方向将矩阵堆叠起来。Note: the arrays must have the same shape along all but the first axis. 除开第一维外,被堆叠的矩阵各维度要一致。示例代码:import numpy as nparr1 = np.array([1, 2, 3])arr2 = np.array([4, 5, 6])r

AttributeError: ‘AvgPool2d’ object has no attribute ‘divisor_override’

(仅记录)1.问题:AttributeError: ‘AvgPool2d’ object has no attribute ‘divisor_override’2.参考:1)版本问题引起的兼容性问题,需要在load完模型后重新定义函数。(试了一下这种方法,在load完模型后重新定义AvgPool2d函数,但对我没用,依旧报错。。。) 'AvgPool2d' object has no attrib

#python#pytorch
2017-CVPR-《iCaRL:Incremental Classifier and Representation Learning》论文阅读笔记

2017-CVPR-《iCaRL:Incremental Classifier and Representation Learning》论文地址:CVPR 2017 Open Access Repository代码地址:GitHub - srebuffi/iCaRL摘要1)人工智能道路上的一个主要问题是开发增量学习系统,随着时间推移,从数据流中学习越来越来的概念。2)In this work,我们

EDAS系统提交 | 编译报错显示 fonttype: Font DejaVuSans is of type Type 3.

查了一下,有15个,刚好和我用python画的图片数量一致,此时感觉应该是用python画的图片有问题。后来又单独用上述命令检查了一下图片的pdf,确定了是用matplotlib画的图片转出的pdf包含Type 3字体。(在网上搜索了解决方法,一般产生这个问题的主要原因是:图片有问题。我提交的论文pdf包含的图片是:用python的matplotlib画的,转出格式是pdf。后来排查pdf也确实是

文章图片
#python
IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in

1.问题:IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item()` in C++ to convert a 0-dim tensor to a number2.解决:主要是因为torch版本不同,用法发生了改变。参考他人博客的解决方法,把prec1[0]改为prec1.

#python
    共 88 条
  • 1
  • 2
  • 3
  • 9
  • 请选择