dshahrokhian / YOLO_tensorflow

:oncoming_taxi: Object Detection (YOLOv1) implentation in tensorflow, with training, testing and video features.
42 stars 22 forks source link

AttributeError: 'str' object has no attribute 'copy' #3

Closed seongkyun closed 7 years ago

seongkyun commented 7 years ago

sorry buddy :)

now, I got an another problem.

I wrote

$ python network/YOLO_small_tf.py -fromfile "person.jpg" -tofile_img "person_out.jpg"

and prints out

Traceback (most recent call last): File "network/YOLO_small_tf.py", line 516, in yolo = YOLO_TF(sys.argv) File "network/YOLO_small_tf.py", line 67, in init self.detect_from_file(self.fromfile) File "network/YOLO_small_tf.py", line 242, in detect_from_file self.show_results(filename, self.result) File "network/YOLO_small_tf.py", line 300, in show_results img_cp = img.copy() AttributeError: 'str' object has no attribute 'copy'

my tensorflow version is R1.0.1

help me plz.

dshahrokhian commented 7 years ago

Try with the new changes.

Thanks, Dani

seongkyun commented 7 years ago

Thank you. It perfectly works!!

best regards, @dshahrokhian !

seongkyun commented 7 years ago

Thanks.

It works with Images PERFECTLY. :)

Now i want to implement YOLO with video.

and i tried

$ python network/YOLO_small_tf.py -video "ped1.mp4" -tofile_vid "ped1_out.mp4"

but it prints out

Wait for the header Wait for the header Wait for the header Wait for the header ...

I think it has header problem. then which format should i use??

i uses *.mp4 file.

best regards, Han

-----Original Message----- From: "Daniyal Shahrokhian"<notifications@github.com> To: "dshahrokhian/YOLO_tensorflow"<YOLO_tensorflow@noreply.github.com>; Cc: "seongkyun"<stronghsg@naver.com>; "Author"<author@noreply.github.com>; Sent: 2017-05-04 (목) 18:25:50 Subject: Re: [dshahrokhian/YOLO_tensorflow] AttributeError: 'str' object has no attribute 'copy' (#3)

Try with the new changes.

Thanks,

Dani

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.