Skip to main content

# pytorch2caffe

A package to convert pytorch model to caffe model.

## Installation

pip3 install pytorch2caffe

or

git clone https://github.com/woodsgao/pytorch2caffe cd pytorch2caffe python3 setup.py install

## Tutorials

Note: import torch first then import pytorch2caffe

import torch from torchvision.models import resnet from pytorch2caffe import pytorch2caffe

name=’resnet18’ resnet18=resnet.resnet18() resnet18.eval() dummy_input=torch.ones([1,3,224,224]) pytorch2caffe.trans_net(resnet18, dummy_input, name) pytorch2caffe.save_prototxt(‘{}.prototxt’.format(name)) pytorch2caffe.save_caffemodel(‘{}.caffemodel’.format(name))

Metadata

Release files for pytorch2caffe 0.1.0

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

Source distribution (sdist)

Source distribution for pytorch2caffe 0.1.0
File Size Uploaded Provenance
pytorch2caffe-0.1.0.tar.gz 34.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytorch2caffe 0.1.0
File Interpreter ABI Platform
pytorch2caffe-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 70.4 kB

Release files / pytorch2caffe-0.1.0.tar.gz

Download URL pytorch2caffe-0.1.0.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f645b23708807309ab14199127db0aa1caff614c611ba058fc00753921d1ddb3
BLAKE2b-256 checksum
How to use checksums
8eeec195d0eca6800b74ede33fa40c171ce17580408418b9a49d153e01892a13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2

Release files / pytorch2caffe-0.1.0-py2.py3-none-any.whl

Download URL pytorch2caffe-0.1.0-py2.py3-none-any.whl
Size 35.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
695bf5a2f2097b3bf8cc1540f4641dd2ad5abaea0be781967d6ed3a1b33ee443
BLAKE2b-256 checksum
How to use checksums
69c297605a8e0aa949bd6616a4bff702204b85d9da176bd62f6cea9fae49ecea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2

Security for pytorch2caffe 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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