Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/install requires #643

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,35 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.

from setuptools import find_packages, setup
import re

# Check dependencies
import torchvision
import cv2
import detectron2
torchvision_ver = re.match(r'(?:\d+!)?([\.\d]+)', torchvision.__version__)[1]
assert [int(x) for x in torchvision_ver.split(".")] >= [0, 4, 2]


setup(
name="slowfast",
version="1.0",
author="FAIR",
url="unknown",
url="https://github.com/facebookresearch/SlowFast",
description="SlowFast Video Understanding",
install_requires=[
# These dependencies are not pure-python.
# In general, avoid adding dependencies that are not pure-python because they are not
# guaranteed to be installable by `pip install` on all platforms.
"Pillow", # or use pillow-simd for better performance
# Do not add opencv here. Just like pytorch, user should install
# opencv themselves, preferrably by OS's package manager, or by
# choosing the proper pypi package name at https://github.com/skvark/opencv-python
# Also, avoid adding dependencies that transitively depend on pytorch or opencv.
# ------------------------------------------------------------
# The following are pure-python dependencies that should be easily installable.
# But still be careful when adding more: fewer people are able to use the software
# with every new dependency added.
"yacs>=0.1.6",
"pyyaml>=5.1",
"av",
Expand All @@ -19,12 +40,8 @@
"tqdm",
"psutil",
"matplotlib",
"detectron2",
"opencv-python",
"pandas",
"torchvision>=0.4.2",
"PIL",
"sklearn",
"scikit-learn",
"tensorboard",
"fairscale",
],
Expand Down