Skip to main content

pytorch模型、数据集国内镜像

Project description

PyTorch模型、数据集国内镜像

一、使用方法

只需要在使用模型或数据集之前导入torch_model_mirrortorch_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_MIRRORPYTORCH_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.4.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

pytorch_mirror-0.4.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file pytorch_mirror-0.4.0.tar.gz.

File metadata

  • Download URL: pytorch_mirror-0.4.0.tar.gz
  • Upload date:
  • Size: 4.3 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

Hashes for pytorch_mirror-0.4.0.tar.gz
Algorithm Hash digest
SHA256 89207a6aa3feafb20889d6840e320f846666f7825e3ec408b3b065ee9ff2e53d
MD5 290d6b47b45a59737ce39945cb1bef6c
BLAKE2b-256 9f0c5cfbbe1c03d8267f22f3a52e1f6a9814a160e888347889457c6532d9b468

See more details on using hashes here.

File details

Details for the file pytorch_mirror-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pytorch_mirror-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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

Hashes for pytorch_mirror-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59f2ee20f38e901a41750e20fd2c7486e71789ab7d4d57c1326c486f83450ef2
MD5 52ced08cd84aa916dd6d4ddc9f31341b
BLAKE2b-256 808e4e465b637f312fc49437fb53a1343aeb4f37b3b5d1ab492d2a7e072d8a34

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page