Skip to main content

pytorch数据集国内镜像

Project description

PyTorch数据集国内镜像

一、使用方法

只需要在使用数据集之前导入torch_dataset_mirror模块即可,如下:

import torch
import torch_dataset_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_DATASET_MIRROR环境变量即可,如下:

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

torch_dataset_mirror-0.2.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

torch_dataset_mirror-0.2.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file torch_dataset_mirror-0.2.1.tar.gz.

File metadata

  • Download URL: torch_dataset_mirror-0.2.1.tar.gz
  • Upload date:
  • Size: 3.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

Hashes for torch_dataset_mirror-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e133f23c5cc2acea54f6d06a43f91d05e5dca0849930b72622fc1cbeb4b59c1e
MD5 b94db0fe55d03527c9f866328aba7ebc
BLAKE2b-256 027f14869485ebf88e7e4c8dfb55e1024c01ddd8f6f499e958d20fffd18cc04c

See more details on using hashes here.

File details

Details for the file torch_dataset_mirror-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: torch_dataset_mirror-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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 torch_dataset_mirror-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a3c536d159d219cb64c79da926837672327856f62088049e4fd79a661698612
MD5 1d43a9559e9e5232b6498ec2f5d9a57c
BLAKE2b-256 2bab65cd62e9d59932bdbc8cb35b27bb316e93d694727fd3b5345aea9ee03128

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