This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
add the option to use a FORCE_CUDA
to force cuda installation on docker
#612
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
91b36ee
add a FORCE_CUDA flag
obendidi bdb36fa
Update Dockerfile
obendidi da40de3
Update setup.py
obendidi 657e962
add FORCE_CUDA as an ARG
41a0643
modified: docker/Dockerfile
obendidi 7126480
small fix to readme of demo
8f1b4a2
remove test print
460d059
keep ARG_CUDA
52d7ccf
remove env value and use the one from ARG
ae6ede3
keep same formatting as source
obendidi 5afb532
change proposed by @miguelvr
e676c95
Update INSTALL.md
obendidi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes the default is
../configs/caffe2/e2e_mask_rcnn_R_50_FPN_1x_caffe2.yaml
, while when running from docker and frommaskrcnn-benchmark
folder it should beconfigs/caffe2/e2e_mask_rcnn_R_50_FPN_1x_caffe2.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the demo won't work if you run it from
maskrcnn-benchmark
folder due to the local includes, so this breaks in that caseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for example, trying to
import predictor
won't work if done frommaskrcnn-benchmark
, and it is explicitly mentioned in the readme that you should cd todemo
first, so I'd vote for removing this changeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current command in the
README.md
of the demo doesn't work:throws the error
FileNotFoundError: [Errno 2] No such file or directory: '../configs/caffe2/e2e_mask_rcnn_R_50_FPN_1x_caffe2.yaml'
this change is just to specify the path to the config file in this particular case:
it should not break any imports in the demo folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that this is for the
docker
example.I have never tried using it with docker, but I know for sure that without docker running the webcam demo code from
maskrcnn-benchmark
folder will not work, you need to be in thedemo
folder.But maybe some paths are setup differently in the dockerfile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wierd, works fine for me outside of
demo
folder (not in docker) using python 3.6 :