Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
c85e0fde
Commit
c85e0fde
authored
May 20, 2019
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update demo
parent
1127bdd3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
12 deletions
+37
-12
abc.jpg
demo/abc.jpg
+0
-0
webcam.py
demo/webcam.py
+14
-10
Dockerfile
docker/Dockerfile
+5
-2
maskrcnn_test.yaml
maskrcnn_test.yaml
+18
-0
No files found.
demo/abc.jpg
0 → 100644
View file @
c85e0fde
63.4 KB
demo/webcam.py
View file @
c85e0fde
...
@@ -64,17 +64,21 @@ def main():
...
@@ -64,17 +64,21 @@ def main():
min_image_size
=
args
.
min_image_size
,
min_image_size
=
args
.
min_image_size
,
)
)
cam
=
cv2
.
VideoCapture
(
0
)
img
=
cv2
.
imread
()
while
True
:
composite
=
coco_demo
.
run_on_opencv_image
(
img
)
start_time
=
time
.
time
()
cv2
.
imwrite
(
'abc.jpg'
,
composite
)
ret_val
,
img
=
cam
.
read
()
# cam = cv2.VideoCapture(0)
composite
=
coco_demo
.
run_on_opencv_image
(
img
)
# while True:
print
(
"Time: {:.2f} s / img"
.
format
(
time
.
time
()
-
start_time
))
# start_time = time.time()
cv2
.
imshow
(
"COCO detections"
,
composite
)
# ret_val, img = cam.read()
if
cv2
.
waitKey
(
1
)
==
27
:
# composite = coco_demo.run_on_opencv_image(img)
break
# esc to quit
# print("Time: {:.2f} s / img".format(time.time() - start_time))
cv2
.
destroyAllWindows
()
# cv2.imshow("COCO detections", composite)
# if cv2.waitKey(1) == 27:
# break # esc to quit
# cv2.destroyAllWindows()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
main
()
main
()
docker/Dockerfile
View file @
c85e0fde
...
@@ -29,11 +29,14 @@ ENV PATH=$CONDA_PREFIX/bin:$PATH
...
@@ -29,11 +29,14 @@ ENV PATH=$CONDA_PREFIX/bin:$PATH
ENV
CONDA_AUTO_UPDATE_CONDA=false
ENV
CONDA_AUTO_UPDATE_CONDA=false
RUN
conda
install
-y
ipython
RUN
conda
install
-y
ipython
RUN
pip
install
ninja yacs cython matplotlib opencv-python tqdm
RUN
pip
install
-i
https://pypi.tuna.tsinghua.edu.cn/simple
ninja yacs cython matplotlib opencv-python tqdm
# Install PyTorch 1.0 Nightly
# Install PyTorch 1.0 Nightly
ARG
CUDA
ARG
CUDA
RUN
conda
install
pytorch-nightly
cudatoolkit
=
${
CUDA
}
-c
pytorch
\
RUN
conda config
--add
channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
\
&&
conda config
--add
channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
\
&&
conda config
--set
show_channel_urls
yes
\
&&
conda
install
pytorch-nightly
cudatoolkit
=
${
CUDA
}
-c
pytorch
\
&&
conda clean
-ya
&&
conda clean
-ya
# Install TorchVision master
# Install TorchVision master
...
...
maskrcnn_test.yaml
0 → 100644
View file @
c85e0fde
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
myapp-pod
namespace
:
fashionbase
labels
:
app
:
myapp
spec
:
containers
:
-
name
:
myapp-container
image
:
registry.cn-beijing.aliyuncs.com/gm-ai/fashionbase_test
imagePullPolicy
:
Always
dnsPolicy
:
ClusterFirst
imagePullSecrets
:
-
name
:
gm-secret
serviceAccount
:
default
serviceAccountName
:
default
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment