Skip to content

Commit

Permalink
Merge pull request #56 from zurk/setup
Browse files Browse the repository at this point in the history
Add setup.py
  • Loading branch information
filipradenovic authored Jun 2, 2022
2 parents c5368df + 656d53b commit 4a49e8a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ In order to run this toolbox you will need:

### Usage

Navigate (```cd```) to the root of the toolbox ```[YOUR_CIRTORCH_ROOT]```.
Navigate (```cd```) to the root of the toolbox ```[YOUR_CIRTORCH_ROOT]```.
You can install package with `pip3 install .` if you need.
Make sure to have desired PyTorch and torchvision packages installed.

<details>
<summary><b>Training</b></summary><br/>
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
torch==1.0.0
torchvision==0.2.1
32 changes: 32 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import os

from setuptools import find_packages, setup

with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f:
long_description = f.read()

setup(
name="cirtorch",
description="CNN Image Retrieval in PyTorch: "
"Training and evaluating CNNs for Image Retrieval in PyTorch",
long_description=long_description,
long_description_content_type="text/markdown",
version="0.0.1",
url="https://github.com/filipradenovic/cnnimageretrieval-pytorch",
download_url="https://github.com/filipradenovic/cnnimageretrieval-pytorch",
packages=find_packages(),
keywords=["machine learning", "cnn", "computer vision"],
install_requires=[
"torch>=1.0.0,<1.4.0",
"torchvision",
],
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
],
)

0 comments on commit 4a49e8a

Please sign in to comment.