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
7bc87084
Commit
7bc87084
authored
Nov 23, 2018
by
Miguel Varela Ramos
Committed by
Francisco Massa
Nov 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README instructions for demo with docker (#206)
parent
9a615b0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
README.md
demo/README.md
+29
-0
No files found.
demo/README.md
View file @
7bc87084
...
...
@@ -2,6 +2,9 @@
This folder contains a simple webcam demo that illustrates how you can use
`maskrcnn_benchmark`
for inference.
### With your preferred environment
You can start it by running it from this folder, using one of the following commands:
```
bash
# by default, it runs on the GPU
...
...
@@ -14,3 +17,29 @@ python webcam.py --config-file ../configs/caffe2/e2e_mask_rcnn_R_101_FPN_1x_caff
# in order to see the probability heatmaps, pass --show-mask-heatmaps
python webcam.py
--min-image-size
300
--show-mask-heatmaps
MODEL.DEVICE cpu
```
### With Docker
Build the image with the tag
`maskrcnn-benchmark`
(check
[
INSTALL.md
](
../INSTALL.md
)
for instructions)
Adjust permissions of the X server host (be careful with this step, refer to
[
here
](
http://wiki.ros.org/docker/Tutorials/GUI
)
for alternatives)
```
bash
xhost +
```
Then run a container with the demo:
```
docker run --rm -it \
-e DISPLAY=${DISPLAY} \
--privileged \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--device=/dev/video0:/dev/video0 \
--ipc=host maskrcnn-benchmark \
python demo/webcam.py --min-image-size 300
```
**DISCLAIMER:**
*
This was tested for an Ubuntu 16.04 machine,
the volume mapping may vary depending on your platform
*
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