RockyXu66 / Faster_RCNN_for_Open_Images_Dataset_Keras

Faster R-CNN for Open Images Dataset by Keras
474 stars 340 forks source link

TypeError: 'list' object is not callable #46

Closed YenHong818 closed 4 years ago

YenHong818 commented 4 years ago

Can I ask how to solve this? I have my own dataset, https://drive.google.com/drive/folders/1Av5ISw_IBz_ZxFXM-HcjgKgRxSC9KEGR?usp=sharing this is the drive I linked. Did I do any mistake when saving the file?

Parsing annotation files
idx=1
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-87-7aa9ec0d28a7> in <module>()
      1 st = time.time()
      2 
----> 3 train_imgs, classes_count, class_mapping = get_data(train_path)
      4 print()
      5 print('Spend %0.2f mins to load the data' % ((time.time()-st)/60) )

<ipython-input-72-8dead35fa357> in get_data(input_path)
     47                         #       ---------------------x2,y2
     48 
---> 49                         [filename,x1,y1,x2,y2,class_name] = line_split()
     50 
     51                         if class_name not in classes_count:

TypeError: 'list' object is not callable
PeymanBaghdadi commented 4 years ago

Hey @YenHong818 can you help me through my issue #55 It is about directories in google colab and upload which file where!! I misunderstood.