> 文章列表 > fpcc.

fpcc.

fpcc.

1.conda create -n fpcc python=3.8

2.conda activate fpcc

3.安装一些包
没有torch: pip3 install torch torchvision torchaudio
没有h5py:pip3 install h5py
没有cv:pip3 install opencv-contrib-python
没有sklearn:pip3 install scikit-learn

4.

FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = './datas/ring_train/ObjectA_train_298.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

A:按照reademe下载数据集,修改txt文件

5.

  File "h5py/h5o.pyx", line 190, in h5py.h5o.open
KeyError: "Unable to open object (object 'gid' doesn't exist)"


Tensorflow

1.tf版本过高

conda install tensorflow-gpu=1.13.1

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()