Skip to content

Commit 64acae8

Browse files
committed
Changed default ObjectDetection default path for required files
ObjectDetection config and weights should be dowloaded to ~/.openshot-qt/yolo/
1 parent bfdfc6d commit 64acae8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/classes/effect_init.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
You should have received a copy of the GNU General Public License
2626
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
2727
"""
28-
28+
from classes.info import USER_PATH
29+
import os
2930
# Not all Effects support pre-processing, so for now, this is a hard-coded
3031
# solution to providing the pre-processing params needed for these special effects.
3132

@@ -150,19 +151,19 @@
150151

151152
"Object Detector": [
152153
{
153-
"value": "../yolo/yolov3.weights",
154+
"value": os.path.join(USER_PATH,"yolo/yolov3.weights"),
154155
"title": "Model Weights",
155156
"type": "text",
156157
"setting": "model-weights"
157158
},
158159
{
159-
"value": "../yolo/yolov3.cfg",
160+
"value": os.path.join(USER_PATH,"yolo/yolov3.cfg"),
160161
"title": "Model Config",
161162
"type": "text",
162163
"setting": "model-config"
163164
},
164165
{
165-
"value": "../yolo/obj.names",
166+
"value": os.path.join(USER_PATH,"yolo/obj.names"),
166167
"title": "Class names",
167168
"type": "text",
168169
"setting": "class-names"

0 commit comments

Comments
 (0)