Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
paulguerrie committed Aug 15, 2023
1 parent 4eb4e7e commit fc2b9ec
Show file tree
Hide file tree
Showing 166 changed files with 1,102,306 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

permissions:
actions: write
contents: write
pull-requests: write
statuses: write

jobs:
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
# This token is required only if you have configured to store the signatures in a remote repository/organization
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/roboflow/inference-server/blob/master/CLA.md'
branch: 'main'
allowlist: capjamesg,yeldarb,paulguerrie,bot*

# the following are the optional inputs - If the optional inputs are not given, then default values will be taken
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
#signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
custom-notsigned-prcomment: 'Thank you for your interest in contributing to the Roboflow Inference Server! Before we can work with your contribution, please sign the project CLA.'
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
#use-dco-flag: true - If you are using DCO instead of CLA
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test WorkFlow

on:
pull_request:
branches: [master]

jobs:
build:
runs-on: [self-hosted, trt]

steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: 🦾 Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest requests pillow requests_toolbelt
- name: 🧹 Lint with flake8
run: |
make check_code_quality
- name: Start Test Docker
run: |
PORT=9101 INFERENCE_SERVER_REPO=roboflow-inference-server-cpu DOCKERFILE=Dockerfile.onnx.cpu make start_test_docker
- name: 🧪 Regression Tests
run: |
PORT=9101 API_KEY=${{ secrets.API_KEY }} asl_instance_segmentation_API_KEY=${{ secrets.ASL_INSTANCE_SEGMENTATION_API_KEY }} asl_poly_instance_seg_API_KEY=${{ secrets.ASL_POLY_INSTANCE_SEG_API_KEY }} bccd_favz3_API_KEY=${{ secrets.BCCD_FAVZ3_API_KEY }} bccd_i4nym_API_KEY=${{ secrets.BCCD_I4NYM_API_KEY }} cats_and_dogs_smnpl_API_KEY=${{ secrets.CATS_AND_DOGS_SMNPL_API_KEY }} coins_xaz9i_API_KEY=${{ secrets.COINS_XAZ9I_API_KEY }} python -m pytest test/
152 changes: 152 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# IDE
.idea/
.vscode/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
_classes.csv

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

deps/
profile/
*.onnx
*.jpg
*.pstats
*.jpeg
*.png
*.mp4
*.roboflow.txt
dev_tools/
*.tmp
ASL-*
README.dataset*
_annotations*

export_api_keys.sh
cache
51 changes: 51 additions & 0 deletions .release/pypi/inference.core.setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import os
import setuptools
from setuptools import find_packages
import sys

root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
sys.path.append(root)
from inference.core.version import __version__

with open("README.md", "r") as fh:
long_description = fh.read()


def read_requirements(path):
with open(path) as fh:
return [line.strip() for line in fh]


setuptools.setup(
name="inference-core",
version=__version__,
author="Roboflow",
author_email="[email protected]",
description="With no prior knowledge of machine learning or device-specific deployment, you can deploy a computer vision model to a range of devices and environments using Roboflow Inference.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/roboflow/inference",
packages=find_packages(
where=root,
exclude=(
"docker",
"docs",
"requirements",
"test",
),
),
install_requires=read_requirements("requirements/_requirements.txt"),
extras_require={
"cpu": read_requirements("requirements/requirements.cpu.txt"),
"gpu": read_requirements("requirements/requirements.gpu.txt"),
"hosted": read_requirements("requirements/requirements.hosted.txt"),
"http": read_requirements("requirements/requirements.http.txt"),
"waf": read_requirements("requirements/requirements.waf.txt"),
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)
56 changes: 56 additions & 0 deletions .release/pypi/inference.cpu.setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import os
import setuptools
from setuptools import find_packages
import sys

root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
sys.path.append(root)
from inference.core.version import __version__

with open("README.md", "r") as fh:
long_description = fh.read()


def read_requirements(path):
if not isinstance(path, list):
path = [path]
requirements = []
for p in path:
with open(p) as fh:
requirements.extend([line.strip() for line in fh])
return requirements


setuptools.setup(
name="inference-cpu",
version=__version__,
author="Roboflow",
author_email="[email protected]",
description="With no prior knowledge of machine learning or device-specific deployment, you can deploy a computer vision model to a range of devices and environments using Roboflow Inference.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/roboflow/inference",
packages=find_packages(
where=root,
exclude=(
"docker",
"docs",
"requirements",
"test",
),
),
install_requires=read_requirements(
["requirements/_requirements.txt", "requirements/requirements.cpu.txt"]
),
extras_require={
"hosted": read_requirements("requirements/requirements.hosted.txt"),
"http": read_requirements("requirements/requirements.http.txt"),
"waf": read_requirements("requirements/requirements.waf.txt"),
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)
56 changes: 56 additions & 0 deletions .release/pypi/inference.gpu.setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import os
import setuptools
from setuptools import find_packages
import sys

root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
sys.path.append(root)
from inference.core.version import __version__

with open("README.md", "r") as fh:
long_description = fh.read()


def read_requirements(path):
if not isinstance(path, list):
path = [path]
requirements = []
for p in path:
with open(p) as fh:
requirements.extend([line.strip() for line in fh])
return requirements


setuptools.setup(
name="inference-gpu",
version=__version__,
author="Roboflow",
author_email="[email protected]",
description="With no prior knowledge of machine learning or device-specific deployment, you can deploy a computer vision model to a range of devices and environments using Roboflow Inference.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/roboflow/inference",
install_requires=read_requirements(
["requirements/_requirements.txt", "requirements/requirements.gpu.txt"]
),
packages=find_packages(
where=root,
exclude=(
"docker",
"docs",
"requirements",
"test",
),
),
extras_require={
"hosted": read_requirements("requirements/requirements.hosted.txt"),
"http": read_requirements("requirements/requirements.http.txt"),
"waf": read_requirements("requirements/requirements.waf.txt"),
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)
Loading

0 comments on commit fc2b9ec

Please sign in to comment.