logo
Loading...

_train_yolov3_Sample.ipynb 出現IndexError: list index out of range - Cupoy

我沒有用Google Colab, 但我想這錯誤應與沒有用Google Colab無關.這支程式在執...

cvdl-1,cvdl-1-d41

_train_yolov3_Sample.ipynb 出現IndexError: list index out of range

2020/01/31 05:18 下午
電腦視覺深度學習討論版
林弘敏
觀看數:5
回答數:1
收藏數:0
cvdl-1
cvdl-1-d41

我沒有用Google Colab, 但我想這錯誤應與沒有用Google Colab無關.

這支程式在執行

from train import get_classes, get_anchors, create_model, create_tiny_model, data_generator, data_generator_wrapper

就出現IndexError: list index out of range. 

請協助.


細節是:

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-22-55b2c63a712d> in <module>
----> 1 from train import get_classes, get_anchors, create_model, create_tiny_model, data_generator, data_generator_wrapper

~\train.py in <module>
    52 parser.add_argument('--save_folder', default='weights/',
    53                     help='Directory for saving checkpoint models')
---> 54 args = parser.parse_args()
    55
    56

D:\Anaconda3\lib\argparse.py in parse_args(self, args, namespace)
  1750         if argv:
  1751             msg = _('unrecognized arguments: %s')
-> 1752             self.error(msg % ' '.join(argv))
  1753         return args
  1754

D:\Anaconda3\lib\argparse.py in error(self, message)
  2497         should either exit or raise an exception.
  2498         """
-> 2499         self.print_usage(_sys.stderr)
  2500         args = {'prog': self.prog, 'message': message}
  2501         self.exit(2, _('%(prog)s: error: %(message)s\n') % args)

D:\Anaconda3\lib\argparse.py in print_usage(self, file)
  2467         if file is None:
  2468             file = _sys.stdout
-> 2469         self._print_message(self.format_usage(), file)
  2470
  2471     def print_help(self, file=None):

D:\Anaconda3\lib\argparse.py in format_usage(self)
  2433         formatter.add_usage(self.usage, self._actions,
  2434                             self._mutually_exclusive_groups)
-> 2435         return formatter.format_help()
  2436
  2437     def format_help(self):

D:\Anaconda3\lib\argparse.py in format_help(self)
   282     # =======================
   283     def format_help(self):
--> 284         help = self._root_section.format_help()
   285         if help:
   286             help = self._long_break_matcher.sub('\n\n', help)

D:\Anaconda3\lib\argparse.py in format_help(self)
   213                 self.formatter._indent()
   214             join = self.formatter._join_parts
--> 215             item_help = join([func(*args) for func, args in self.items])
   216             if self.parent is not None:
   217                 self.formatter._dedent()

D:\Anaconda3\lib\argparse.py in <listcomp>(.0)
   213                 self.formatter._indent()
   214             join = self.formatter._join_parts
--> 215             item_help = join([func(*args) for func, args in self.items])
   216             if self.parent is not None:
   217                 self.formatter._dedent()

D:\Anaconda3\lib\argparse.py in _format_usage(self, usage, actions, groups, prefix)
   320             # build full usage string
   321             format = self._format_actions_usage
--> 322             action_usage = format(optionals + positionals, groups)
   323             usage = ' '.join([s for s in [prog, action_usage] if s])
   324

D:\Anaconda3\lib\argparse.py in _format_actions_usage(self, actions, groups)
   395         for group in groups:
   396             try:
--> 397                 start = actions.index(group._group_actions[0])
   398             except ValueError:
   399                 continue

IndexError: list index out of range