# MindSpore
**Repository Path**: ZavierXie/mindspore
## Basic Information
- **Project Name**: MindSpore
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-06-06
- **Last Updated**: 2024-07-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## MindSpore
### 环境配置
- [Windows](###Windows)
- [Linux](###Linux)
### 网络模型
- [ResNet-50](ResNet50/note.md)
- [Bayesian](Bayesian/note.md)
### P
- [Camera](Camera/note.md)
### Windows
#### 环境配置
- Python == 3.9.19
> anaconda环境配置
>
> ```shell
> # prompt
> # 创建环境
> conda create -n "env_name" python="version"
>
> # 等待自动安装
> # 激活环境
> conda activate "env_name"
> # 安装库
> pip install "package_name"(=="version")
> conda install "package_name"(=="version")
> ```
>
> ```shell
> # 检查环境列表
> conda env list
> # 检查python版本
> python --version
> # 进入python
> python
> ```
- MindSpore == 2.2.14
> 安装MindSpore
>
> ```shell
> pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.2.14/MindSpore/cpu/x86_64/mindspore-2.2.14-cp39-cp39-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
> ```
>
>
>
> ```
> # 检查安装
> import mindspore
>
> mindspore.set_context(device_target='GPU')
> mindspore.run_check()
> ```
>
>
### Linux
#### 环境配置
- CUDA == 11.1
> ```shell
> nvcc -V
> ```
>
> 
- cuDNN == 8.0.5
> [安装链接](https://developer.nvidia.com/rdp/cudnn-archive)
>
> ```shell
> # 解压
> tar -zxvf cudnn.tgz
> sudo cp cuda/include/cudnn*.h /usr/local/cuda-11.1/include
> sudo cp cuda/lib64/libcudnn* /usr/local/cuda-11.1/lib64
> sudo chmod a+r /usr/local/cuda-11.1/include/cudnn*.h /usr/local/cuda-11.1/lib64/libcudnn*
>
> # 查询版本
> cat /usr/local/cuda-11.1/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
> ```
>
>
- Python == 3.8.10
> ```shell
> python --version
> ```
>
> 
- GCC == 7
> ```shell
> gcc --version
> ```
>
>
- MindSpore == 2.2.14
> ```shell
> pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.2.14/MindSpore/unified/x86_64/mindspore-2.2.14-cp38-cp38-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
> ```
>
> ```python
> # 检查安装
> import mindspore
>
> mindspore.set_context(device_target='GPU')
> mindspore.run_check()
> ```
>
> 