Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transnetv2 as python package, readme update
- Loading branch information
Showing
6 changed files
with
147 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM tensorflow/tensorflow:2.1.1-gpu | ||
|
||
RUN pip3 --no-cache-dir install \ | ||
Pillow \ | ||
ffmpeg-python | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ffmpeg | ||
|
||
COPY setup.py /tmp | ||
COPY inference /tmp/inference | ||
|
||
RUN cd /tmp && python3 setup.py install && rm -r * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .transnetv2 import TransNetV2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name="transnetv2", | ||
version="1.0.0", | ||
# let user install tensorflow, etc. manually | ||
# install_requires=[ | ||
# "tensorflow>=2.0", | ||
# "ffmpeg-python", | ||
# "pillow" | ||
# ], | ||
entry_points={ | ||
"console_scripts": [ | ||
"transnetv2_predict = transnetv2.transnetv2:main", | ||
] | ||
}, | ||
packages=["transnetv2"], | ||
package_dir={"transnetv2": "./inference"}, | ||
package_data={"transnetv2": [ | ||
"transnetv2-weights/*", | ||
"transnetv2-weights/variables/*" | ||
]}, | ||
zip_safe=False | ||
) |