File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 25
25
You should have received a copy of the GNU General Public License
26
26
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
27
27
"""
28
-
28
+ from classes .info import USER_PATH
29
+ import os
29
30
# Not all Effects support pre-processing, so for now, this is a hard-coded
30
31
# solution to providing the pre-processing params needed for these special effects.
31
32
150
151
151
152
"Object Detector" : [
152
153
{
153
- "value" : "../ yolo/yolov3.weights" ,
154
+ "value" : os . path . join ( USER_PATH , " yolo/yolov3.weights") ,
154
155
"title" : "Model Weights" ,
155
156
"type" : "text" ,
156
157
"setting" : "model-weights"
157
158
},
158
159
{
159
- "value" : "../ yolo/yolov3.cfg" ,
160
+ "value" : os . path . join ( USER_PATH , " yolo/yolov3.cfg") ,
160
161
"title" : "Model Config" ,
161
162
"type" : "text" ,
162
163
"setting" : "model-config"
163
164
},
164
165
{
165
- "value" : "../ yolo/obj.names" ,
166
+ "value" : os . path . join ( USER_PATH , " yolo/obj.names") ,
166
167
"title" : "Class names" ,
167
168
"type" : "text" ,
168
169
"setting" : "class-names"
You can’t perform that action at this time.
0 commit comments