Модель YOLO с темным потоком: keyError: «логистика»? - PullRequest
0 голосов
/ 07 апреля 2019

Я пытаюсь настроить обучение модели YOLO с помощью Darkflow, но у меня была ошибка, чтобы начать с обучения. Ошибка KeyError: «логистика». Я не знаю об этой ошибке. Как я могу решить эту проблему? Это результат моих попыток.

(base) ---> python flow --model ./cfg/car-yolo.cfg --labels ./labels.txt -            
    -trainer adam --dataset ./test/training/images/ --annotation 
    ./test/training/annotations/ --train --summary ./logs --batch 5 --epoch 100 --save 50 --keep 5 --lr 1e-04 --savepb
C:\Users\jylee\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters

Parsing ./cfg/car-yolo.cfg
Loading None ...
Finished in 0.0009963512420654297s

Building net ...

| Source| Train? | Layer description                | Output size      |
| ------| -------| -------------------------------- |------------------|
|       |        | input                            | (?, 608, 608, 3) |
| Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 608, 608, 32)|
| Load  |  Yep!  | maxp 2x2p0_2                     | (?, 304, 304, 32)|
| Init  |  Yep!  | conv 3x3p1_1  +bnorm  logistic   | (?, 304, 304, 64)|

Traceback (most recent call last):
  File "flow", line 6, in <module>
    cliHandler(sys.argv)
  File "C:\\license_plate_detection\darkflow\darkflow\cli.py", line 26, in cliHandler
    tfnet = TFNet(FLAGS)

  File "C:\\license_plate_detection\darkflow\darkflow\net\build.py", line 75, in __init__
    self.build_forward()

  File "C:\\license_plate_detection\darkflow\darkflow\net\build.py", line 115, in build_forward
    state = op_create(*args)

  File "C:\\license_plate_detection\darkflow\darkflow\net\ops\__init__.py", line 27, in op_create
    return op_types[layer_type](*args)

KeyError: 'logistic'
...