Skip to main content

PyTorch模型、数据集国内镜像

一、使用方法

只需要在使用模型或数据集之前导入torchmirror.dataset或torchmirror.model模块即可,如下:

import torch
import torchvision.datasets.mnist as mnist
from torchmirror import dataset, model

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

Metadata

Release files for pytorch-mirror 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytorch-mirror 0.5.1
File Size Uploaded Provenance Actions
pytorch_mirror-0.5.1.tar.gz 4.3 kB Without provenance Details for pytorch_mirror-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytorch-mirror 0.5.1
File Interpreter ABI Platform Actions
pytorch_mirror-0.5.1-py3-none-any.whl Python 3 none any Details for pytorch_mirror-0.5.1-py3-none-any.whl

Total release size: 16.3 kB

Release files / pytorch_mirror-0.5.1.tar.gz

Download URL pytorch_mirror-0.5.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7727244a67b513a36a33d2f6eba22e9247c72ba407921fc02e881d15fc6774a8
BLAKE2b-256 checksum
How to use checksums
3e45df2b2e9a199225a8d5ea4dbf5b79d23a635b14145a75fbe32a9194aff759
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pytorch_mirror-0.5.1-py3-none-any.whl

Download URL pytorch_mirror-0.5.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb0e3100735ffeca72329fb98ffab0fcd55e91719a409e10a020876cc83e3957
BLAKE2b-256 checksum
How to use checksums
b0879e37a6afa144fcbd211d024143944623a136b6572d24b8e2f5294eb052dc
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pytorch-mirror 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page