0

I'm trying to create a YoloV3 model following a tutorial (https://articlearn.id/article/e5571bb0-how-to-train-yolov3-on-google-colab-to-de/).
I'm stuck with an error here :

# Add your object names to this list
custom_objects = ['grenouille','triton']

objects = "\n".join(custom_objects)
!echo -e $objects > data/obj.names
#!echo -e 'classes = $classes\ntrain = data/train.txt\nvalid = data/test.txt\nnames = data/obj.names\nbackup = /mydrive/custom_object_detection/' > data/obj.data

I printed custom_objects and it's a List, I printed objects and it's a string.
However when it's come to !echo ... I get :

grenouille
/bin/bash: line 1: triton: command not found

How can I solve this issue ?

[EDIT] it works fine with only "grenouille", but as soon as I put more than one item in the list I get the error

J.erome
  • 638
  • 4
  • 19
  • This is quite unclear. You appear to be trying to mix Bash and Python but Bash obviously has no idea what internal variables you have declared in Python, just like you can't access internal variables of the Python interpreter from its command line (unless it separately exposes them to you). – tripleee Dec 08 '21 at 10:49

0 Answers0