pytorch模型、数据集国内镜像
Project description
PyTorch模型、数据集国内镜像
一、使用方法
只需要在使用模型或数据集之前导入torch_model_mirror
或torch_dataset_mirror
模块即可,如下:
import torch
import torch_dataset_mirror
import torch_model_mirror
import torchvision.datasets.mnist as mnist
train_dataset = mnist.MNIST("./data", train=True, download=True)
test_dataset = mnist.MNIST("./data", train=False, download=True)
二、使用其他镜像
要使用其他镜像,只需要修改PYTORCH_MODEL_MIRROR
或PYTORCH_DATASET_MIRROR
环境变量即可,如下:
export PYTORCH_MODEL_MIRROR=http://192.168.0.100:8080
export PYTORCH_DATASET_MIRROR=http://192.168.0.100:8080
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytorch_mirror-0.3.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file pytorch_mirror-0.3.1.tar.gz
.
File metadata
- Download URL: pytorch_mirror-0.3.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8359d6a91850c574977becde319fe07dc60782738cbd0c1ddb055e7fa2580b5c |
|
MD5 | 758fa8227ee7877b5b16c7d92b75a3fa |
|
BLAKE2b-256 | 06f15445ec95c964aa6e863964b5c51a6779c2153047dae45b282b1a9f74115c |
File details
Details for the file pytorch_mirror-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: pytorch_mirror-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0734313bfbe1c3d060c4d44696be235558b4208a8ab66207b50af41aedbfda |
|
MD5 | d32b24a6f4afd1d758cc018db2e09c54 |
|
BLAKE2b-256 | e1fa47f458db5bd83fd0f6a23635d85a65eda3f8149762c5084628f91e081d53 |