wip
This commit is contained in:
parent
bae554d2d5
commit
4f2d1c322e
11 changed files with 136 additions and 2 deletions
18
people/handler.py
Normal file
18
people/handler.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
def detect_person(url):
|
||||
return "Hello, World!"
|
||||
|
||||
|
||||
def handle(req):
|
||||
"""handle a request to the function
|
||||
Args:
|
||||
req (str): request body
|
||||
"""
|
||||
|
||||
if not req:
|
||||
raise Exception("Empty request")
|
||||
|
||||
if isinstance(req, str):
|
||||
req = req.encode("utf-8")
|
||||
url = req
|
||||
|
||||
return detect_person(url)
|
||||
30
people/requirements.txt
Normal file
30
people/requirements.txt
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# pip install -r requirements.txt
|
||||
|
||||
# base ----------------------------------------
|
||||
Cython
|
||||
matplotlib>=3.2.2
|
||||
numpy>=1.18.5
|
||||
opencv-python>=4.1.2
|
||||
Pillow
|
||||
PyYAML>=5.3.1
|
||||
scipy>=1.4.1
|
||||
tensorboard>=2.2
|
||||
torch>=1.7.0
|
||||
torchvision>=0.8.1
|
||||
tqdm>=4.41.0
|
||||
|
||||
# logging -------------------------------------
|
||||
# wandb
|
||||
|
||||
# plotting ------------------------------------
|
||||
seaborn>=0.11.0
|
||||
pandas
|
||||
|
||||
# export --------------------------------------
|
||||
# coremltools>=4.1
|
||||
# onnx>=1.8.1
|
||||
# scikit-learn==0.19.2 # for coreml quantization
|
||||
|
||||
# extras --------------------------------------
|
||||
thop # FLOPS computation
|
||||
pycocotools>=2.0 # COCO mAP
|
||||
Loading…
Add table
Add a link
Reference in a new issue