mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
Merge pull request #9073 from berak:dnn_fix_tutorial_links
This commit is contained in:
commit
9aaf6a66a3
@ -204,9 +204,9 @@ if __name__ == "__main__":
|
|||||||
parser.add_argument("--val_names", help="path to file with validation set image names, download it here: "
|
parser.add_argument("--val_names", help="path to file with validation set image names, download it here: "
|
||||||
"https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/data/pascal/seg11valid.txt")
|
"https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/data/pascal/seg11valid.txt")
|
||||||
parser.add_argument("--cls_file", help="path to file with colors for classes, download it here: "
|
parser.add_argument("--cls_file", help="path to file with colors for classes, download it here: "
|
||||||
"https://github.com/opencv/opencv/blob/master/modules/samples/data/dnn/pascal-classes.txt")
|
"https://github.com/opencv/opencv/blob/master/samples/data/dnn/pascal-classes.txt")
|
||||||
parser.add_argument("--prototxt", help="path to caffe prototxt, download it here: "
|
parser.add_argument("--prototxt", help="path to caffe prototxt, download it here: "
|
||||||
"https://github.com/opencv/opencv/blob/master/modules/samples/data/dnn/fcn8s-heavy-pascal.prototxt")
|
"https://github.com/opencv/opencv/blob/master/samples/data/dnn/fcn8s-heavy-pascal.prototxt")
|
||||||
parser.add_argument("--caffemodel", help="path to caffemodel file, download it here: "
|
parser.add_argument("--caffemodel", help="path to caffemodel file, download it here: "
|
||||||
"http://dl.caffe.berkeleyvision.org/fcn8s-heavy-pascal.caffemodel")
|
"http://dl.caffe.berkeleyvision.org/fcn8s-heavy-pascal.caffemodel")
|
||||||
parser.add_argument("--log", help="path to logging file")
|
parser.add_argument("--log", help="path to logging file")
|
||||||
|
@ -13,7 +13,7 @@ We will demonstrate results of this example on the following picture.
|
|||||||
Source Code
|
Source Code
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
We will be using snippets from the example application, that can be downloaded [here](https://github.com/opencv/opencv/blob/master/modules/samples/dnn/caffe_googlenet.cpp).
|
We will be using snippets from the example application, that can be downloaded [here](https://github.com/opencv/opencv/blob/master/samples/dnn/caffe_googlenet.cpp).
|
||||||
|
|
||||||
@include dnn/caffe_googlenet.cpp
|
@include dnn/caffe_googlenet.cpp
|
||||||
|
|
||||||
@ -21,11 +21,11 @@ Explanation
|
|||||||
-----------
|
-----------
|
||||||
|
|
||||||
-# Firstly, download GoogLeNet model files:
|
-# Firstly, download GoogLeNet model files:
|
||||||
[bvlc_googlenet.prototxt ](https://raw.githubusercontent.com/opencv/opencv/master/modules/samples/data/dnn/bvlc_googlenet.prototxt) and
|
[bvlc_googlenet.prototxt ](https://raw.githubusercontent.com/opencv/opencv/master/samples/data/dnn/bvlc_googlenet.prototxt) and
|
||||||
[bvlc_googlenet.caffemodel](http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel)
|
[bvlc_googlenet.caffemodel](http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel)
|
||||||
|
|
||||||
Also you need file with names of [ILSVRC2012](http://image-net.org/challenges/LSVRC/2012/browse-synsets) classes:
|
Also you need file with names of [ILSVRC2012](http://image-net.org/challenges/LSVRC/2012/browse-synsets) classes:
|
||||||
[synset_words.txt](https://raw.githubusercontent.com/opencv/opencv/master/modules/samples/data/dnn/synset_words.txt).
|
[synset_words.txt](https://raw.githubusercontent.com/opencv/opencv/master/samples/data/dnn/synset_words.txt).
|
||||||
|
|
||||||
Put these files into working dir of this program example.
|
Put these files into working dir of this program example.
|
||||||
|
|
||||||
@ -63,4 +63,4 @@ Explanation
|
|||||||
For our image we get:
|
For our image we get:
|
||||||
> Best class: #812 'space shuttle'
|
> Best class: #812 'space shuttle'
|
||||||
>
|
>
|
||||||
> Probability: 99.6378%
|
> Probability: 99.6378%
|
||||||
|
@ -93,7 +93,7 @@ When you build OpenCV add the following configuration flags:
|
|||||||
Download Caffe model from SqueezeNet repository: [train_val.prototxt](https://github.com/DeepScale/SqueezeNet/blob/master/SqueezeNet_v1.1/train_val.prototxt) and [squeezenet_v1.1.caffemodel](https://github.com/DeepScale/SqueezeNet/blob/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel).
|
Download Caffe model from SqueezeNet repository: [train_val.prototxt](https://github.com/DeepScale/SqueezeNet/blob/master/SqueezeNet_v1.1/train_val.prototxt) and [squeezenet_v1.1.caffemodel](https://github.com/DeepScale/SqueezeNet/blob/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel).
|
||||||
|
|
||||||
Also you need file with names of [ILSVRC2012](http://image-net.org/challenges/LSVRC/2012/browse-synsets) classes:
|
Also you need file with names of [ILSVRC2012](http://image-net.org/challenges/LSVRC/2012/browse-synsets) classes:
|
||||||
[synset_words.txt](https://raw.githubusercontent.com/opencv/opencv/master/modules/samples/data/dnn/synset_words.txt).
|
[synset_words.txt](https://raw.githubusercontent.com/opencv/opencv/master/samples/data/dnn/synset_words.txt).
|
||||||
|
|
||||||
Put these files into working dir of this program example.
|
Put these files into working dir of this program example.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user