logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

解决报错:TypeError: log_sigmoid(): argument ‘input‘ (position 1) must be Tensor, not torch.return_types.

报错如下:TypeError: log_sigmoid(): argument 'input' (position 1) must be Tensor, not torch.return_types.maxtorch.max()的返回类型为 torch.return_types.maxfused_scores = torch.max(scores, 0)查看 fused_scores 的输出fus

#python#bug
解决报错 RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /pytorch/aten/sr

报错如下:RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:47对于单GPU的服务器os.environ["CUDA_VISIBLE_DEVICES"] = '0'报以上的错误,可能是由于未设置成 0

#bug
pytorch版预训练CNN模型Alexnet-vggnet-inception-Resnet-Densenet

Alexnet:model_urls = {‘alexnet’: ‘https://download.pytorch.org/models/alexnet-owt-4df8aa71.pth’,}vggnet:model_urls = {‘vgg11’: ‘https://download.pytorch.org/models/vgg11-bbd30ac9.pth’,‘vgg13’: ...

pytorch里面报错raise TypeError('tensor is not a torch image.')

报错如下:File “/home/muli/anaconda3/lib/python3.5/site-packages/torchvision/transforms/functional.py”, line 158, in normalizeraise TypeError(‘tensor is not a torch image.’)TypeError: tensor is not a to...

数据集中图像裁剪scale大小

数据集中图像裁剪scale大小:{256,384,512,640,748}

#python
tensorflow-gpu与cuda、keras之间的对应关系

tensorflow-gpu与cuda之间的对应关系:tensorflow与Keras之间的对应关系

#tensorflow
python里面读取h5文件报错OSError: Can‘t read data (address of object past end of allocation)

报错如下:File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapperFile "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapperFile "h5py/h5d.pyx", line 182, in h5py.h5d.DatasetID.read

#python
计算CP、CR、CF1、OP、OR、OF1和mAP的top-3评价指标

计算CP、CR、CF1、OP、OR、OF1和mAP评价指标# -*- coding: utf-8 -*-import numpy as np#CP CR CF1 OP OR OF1mAP 的函数返回值def calculate_metrics(labels, preds):mAP = calculate_mAP(labels, preds)pc_top3, r...

ResNet 各个版本 tensorflow下载

ResNet 各个版本 tensorfolw下载:下载链接:https://github.com/keras-team/keras-applications/releases/tag/resnetresnet101v2_weights_tf_dim_ordering_tf_kernels.h5171 MBresnet101v2_weights_tf_dim_ordering_tf_k...

报错:RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /pytorch/aten/src/

no CUDA-capable device ,可能原因时没有torch-GPU在代码中指定了GPU(多卡情况下),而单卡中是 ‘0’os.environ["CUDA_VISIBLE_DEVICES"] = '1'将os.environ[“CUDA_VISIBLE_DEVICES”] = ‘1’ 修改为os.environ["CUDA_VISIBLE_DEVICES"] = '0'或者注释该行代码

#深度学习
    共 35 条
  • 1
  • 2
  • 3
  • 4
  • 请选择