-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix LD_LIBRARY_PATH * Typo fix * Install usb cam deps * Update README.MD * Update demo setup Co-authored-by: Illia Oleksiienko <io@ece.au.dk>
- Loading branch information
1 parent
236fd3a
commit 83989cd
Showing
7 changed files
with
68 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
projects/perception/object_detection_3d/demos/voxel_object_detection_3d/setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2020-2021 OpenDR European Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from setuptools import find_packages, setup | ||
|
||
|
||
def from_file(file_name: str = "requirements.txt", comment_char: str = "#"): | ||
"""Load requirements from a file""" | ||
with open(file_name, "r") as file: | ||
lines = [ln.strip() for ln in file.readlines()] | ||
reqs = [] | ||
for ln in lines: | ||
# filer all comments | ||
if comment_char in ln: | ||
ln = ln[: ln.index(comment_char)].strip() | ||
# skip directly installed dependencies | ||
if ln.startswith("http"): | ||
continue | ||
if ln: # if requirement is not empty | ||
reqs.append(ln) | ||
return reqs | ||
|
||
|
||
def long_description(): | ||
text = open("README.md", encoding="utf-8").read() | ||
# SVG images are not readable on PyPI, so replace them with PNG | ||
text = text.replace(".svg", ".png") | ||
return text | ||
|
||
|
||
setup( | ||
name="object_detection_3d_demo", | ||
version="0.1.0", | ||
description="Example of in-browser video streaming and processing using the OpenDR toolkit.", | ||
long_description=long_description(), | ||
long_description_content_type="text/markdown", | ||
author="Illia Oleksiienko, Lukas Hedegaard", | ||
author_email="{io, lhm}@ece.au.dk", | ||
install_requires=from_file("requirements.txt"), | ||
packages=find_packages(exclude=["test"]), | ||
keywords=["deep learning", "pytorch", "AI", "OpenDR", "lidar"], | ||
) |
3 changes: 0 additions & 3 deletions
3
projects/perception/object_tracking_2d/demos/fair_mot_deep_sort/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
flask | ||
# black | ||
# isort>=5.7 | ||
# flake8-black | ||
numpy | ||
opencv-contrib-python | ||
imutils | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters