From 4f49004c28ae05d24e96183628eb6774b9ad2e72 Mon Sep 17 00:00:00 2001 From: Evan Shelhamer Date: Fri, 14 Feb 2014 15:40:38 -0800 Subject: [PATCH] add shebang to python scripts for executing in the shell without call to python. Follows the example of @kloudkl . --- python/caffe/convert.py | 1 + python/caffe/detection/detector.py | 1 + python/caffe/drawnet.py | 1 + python/caffe/imagenet/wrapper.py | 1 + 4 files changed, 4 insertions(+) diff --git a/python/caffe/convert.py b/python/caffe/convert.py index 4f74bd0..deef657 100644 --- a/python/caffe/convert.py +++ b/python/caffe/convert.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """This script converts blobproto instances to numpy arrays. """ diff --git a/python/caffe/detection/detector.py b/python/caffe/detection/detector.py index 05b998b..363124a 100644 --- a/python/caffe/detection/detector.py +++ b/python/caffe/detection/detector.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """ Do windowed detection by classifying a number of images/crops at once, optionally using the selective search window proposal method. diff --git a/python/caffe/drawnet.py b/python/caffe/drawnet.py index 4f94f5d..8ff0d83 100644 --- a/python/caffe/drawnet.py +++ b/python/caffe/drawnet.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """Functions to draw a caffe NetParameter protobuffer. """ diff --git a/python/caffe/imagenet/wrapper.py b/python/caffe/imagenet/wrapper.py index b8eaa5c..c29f1ab 100644 --- a/python/caffe/imagenet/wrapper.py +++ b/python/caffe/imagenet/wrapper.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """wrapper.py implements an end-to-end wrapper that classifies an image read from disk, using the imagenet classifier. """ -- 2.7.4