yolov3.cfg 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. [net]
  2. # Testing
  3. # batch=1
  4. # subdivisions=1
  5. # Training
  6. batch=64
  7. subdivisions=16
  8. width=608
  9. height=608
  10. channels=3
  11. momentum=0.9
  12. decay=0.0005
  13. angle=0
  14. saturation = 1.5
  15. exposure = 1.5
  16. hue=.1
  17. learning_rate=0.001
  18. burn_in=1000
  19. max_batches = 500200
  20. policy=steps
  21. steps=400000,450000
  22. scales=.1,.1
  23. [convolutional]
  24. batch_normalize=1
  25. filters=32
  26. size=3
  27. stride=1
  28. pad=1
  29. activation=leaky
  30. # Downsample
  31. [convolutional]
  32. batch_normalize=1
  33. filters=64
  34. size=3
  35. stride=2
  36. pad=1
  37. activation=leaky
  38. [convolutional]
  39. batch_normalize=1
  40. filters=32
  41. size=1
  42. stride=1
  43. pad=1
  44. activation=leaky
  45. [convolutional]
  46. batch_normalize=1
  47. filters=64
  48. size=3
  49. stride=1
  50. pad=1
  51. activation=leaky
  52. [shortcut]
  53. from=-3
  54. activation=linear
  55. # Downsample
  56. [convolutional]
  57. batch_normalize=1
  58. filters=128
  59. size=3
  60. stride=2
  61. pad=1
  62. activation=leaky
  63. [convolutional]
  64. batch_normalize=1
  65. filters=64
  66. size=1
  67. stride=1
  68. pad=1
  69. activation=leaky
  70. [convolutional]
  71. batch_normalize=1
  72. filters=128
  73. size=3
  74. stride=1
  75. pad=1
  76. activation=leaky
  77. [shortcut]
  78. from=-3
  79. activation=linear
  80. [convolutional]
  81. batch_normalize=1
  82. filters=64
  83. size=1
  84. stride=1
  85. pad=1
  86. activation=leaky
  87. [convolutional]
  88. batch_normalize=1
  89. filters=128
  90. size=3
  91. stride=1
  92. pad=1
  93. activation=leaky
  94. [shortcut]
  95. from=-3
  96. activation=linear
  97. # Downsample
  98. [convolutional]
  99. batch_normalize=1
  100. filters=256
  101. size=3
  102. stride=2
  103. pad=1
  104. activation=leaky
  105. [convolutional]
  106. batch_normalize=1
  107. filters=128
  108. size=1
  109. stride=1
  110. pad=1
  111. activation=leaky
  112. [convolutional]
  113. batch_normalize=1
  114. filters=256
  115. size=3
  116. stride=1
  117. pad=1
  118. activation=leaky
  119. [shortcut]
  120. from=-3
  121. activation=linear
  122. [convolutional]
  123. batch_normalize=1
  124. filters=128
  125. size=1
  126. stride=1
  127. pad=1
  128. activation=leaky
  129. [convolutional]
  130. batch_normalize=1
  131. filters=256
  132. size=3
  133. stride=1
  134. pad=1
  135. activation=leaky
  136. [shortcut]
  137. from=-3
  138. activation=linear
  139. [convolutional]
  140. batch_normalize=1
  141. filters=128
  142. size=1
  143. stride=1
  144. pad=1
  145. activation=leaky
  146. [convolutional]
  147. batch_normalize=1
  148. filters=256
  149. size=3
  150. stride=1
  151. pad=1
  152. activation=leaky
  153. [shortcut]
  154. from=-3
  155. activation=linear
  156. [convolutional]
  157. batch_normalize=1
  158. filters=128
  159. size=1
  160. stride=1
  161. pad=1
  162. activation=leaky
  163. [convolutional]
  164. batch_normalize=1
  165. filters=256
  166. size=3
  167. stride=1
  168. pad=1
  169. activation=leaky
  170. [shortcut]
  171. from=-3
  172. activation=linear
  173. [convolutional]
  174. batch_normalize=1
  175. filters=128
  176. size=1
  177. stride=1
  178. pad=1
  179. activation=leaky
  180. [convolutional]
  181. batch_normalize=1
  182. filters=256
  183. size=3
  184. stride=1
  185. pad=1
  186. activation=leaky
  187. [shortcut]
  188. from=-3
  189. activation=linear
  190. [convolutional]
  191. batch_normalize=1
  192. filters=128
  193. size=1
  194. stride=1
  195. pad=1
  196. activation=leaky
  197. [convolutional]
  198. batch_normalize=1
  199. filters=256
  200. size=3
  201. stride=1
  202. pad=1
  203. activation=leaky
  204. [shortcut]
  205. from=-3
  206. activation=linear
  207. [convolutional]
  208. batch_normalize=1
  209. filters=128
  210. size=1
  211. stride=1
  212. pad=1
  213. activation=leaky
  214. [convolutional]
  215. batch_normalize=1
  216. filters=256
  217. size=3
  218. stride=1
  219. pad=1
  220. activation=leaky
  221. [shortcut]
  222. from=-3
  223. activation=linear
  224. [convolutional]
  225. batch_normalize=1
  226. filters=128
  227. size=1
  228. stride=1
  229. pad=1
  230. activation=leaky
  231. [convolutional]
  232. batch_normalize=1
  233. filters=256
  234. size=3
  235. stride=1
  236. pad=1
  237. activation=leaky
  238. [shortcut]
  239. from=-3
  240. activation=linear
  241. # Downsample
  242. [convolutional]
  243. batch_normalize=1
  244. filters=512
  245. size=3
  246. stride=2
  247. pad=1
  248. activation=leaky
  249. [convolutional]
  250. batch_normalize=1
  251. filters=256
  252. size=1
  253. stride=1
  254. pad=1
  255. activation=leaky
  256. [convolutional]
  257. batch_normalize=1
  258. filters=512
  259. size=3
  260. stride=1
  261. pad=1
  262. activation=leaky
  263. [shortcut]
  264. from=-3
  265. activation=linear
  266. [convolutional]
  267. batch_normalize=1
  268. filters=256
  269. size=1
  270. stride=1
  271. pad=1
  272. activation=leaky
  273. [convolutional]
  274. batch_normalize=1
  275. filters=512
  276. size=3
  277. stride=1
  278. pad=1
  279. activation=leaky
  280. [shortcut]
  281. from=-3
  282. activation=linear
  283. [convolutional]
  284. batch_normalize=1
  285. filters=256
  286. size=1
  287. stride=1
  288. pad=1
  289. activation=leaky
  290. [convolutional]
  291. batch_normalize=1
  292. filters=512
  293. size=3
  294. stride=1
  295. pad=1
  296. activation=leaky
  297. [shortcut]
  298. from=-3
  299. activation=linear
  300. [convolutional]
  301. batch_normalize=1
  302. filters=256
  303. size=1
  304. stride=1
  305. pad=1
  306. activation=leaky
  307. [convolutional]
  308. batch_normalize=1
  309. filters=512
  310. size=3
  311. stride=1
  312. pad=1
  313. activation=leaky
  314. [shortcut]
  315. from=-3
  316. activation=linear
  317. [convolutional]
  318. batch_normalize=1
  319. filters=256
  320. size=1
  321. stride=1
  322. pad=1
  323. activation=leaky
  324. [convolutional]
  325. batch_normalize=1
  326. filters=512
  327. size=3
  328. stride=1
  329. pad=1
  330. activation=leaky
  331. [shortcut]
  332. from=-3
  333. activation=linear
  334. [convolutional]
  335. batch_normalize=1
  336. filters=256
  337. size=1
  338. stride=1
  339. pad=1
  340. activation=leaky
  341. [convolutional]
  342. batch_normalize=1
  343. filters=512
  344. size=3
  345. stride=1
  346. pad=1
  347. activation=leaky
  348. [shortcut]
  349. from=-3
  350. activation=linear
  351. [convolutional]
  352. batch_normalize=1
  353. filters=256
  354. size=1
  355. stride=1
  356. pad=1
  357. activation=leaky
  358. [convolutional]
  359. batch_normalize=1
  360. filters=512
  361. size=3
  362. stride=1
  363. pad=1
  364. activation=leaky
  365. [shortcut]
  366. from=-3
  367. activation=linear
  368. [convolutional]
  369. batch_normalize=1
  370. filters=256
  371. size=1
  372. stride=1
  373. pad=1
  374. activation=leaky
  375. [convolutional]
  376. batch_normalize=1
  377. filters=512
  378. size=3
  379. stride=1
  380. pad=1
  381. activation=leaky
  382. [shortcut]
  383. from=-3
  384. activation=linear
  385. # Downsample
  386. [convolutional]
  387. batch_normalize=1
  388. filters=1024
  389. size=3
  390. stride=2
  391. pad=1
  392. activation=leaky
  393. [convolutional]
  394. batch_normalize=1
  395. filters=512
  396. size=1
  397. stride=1
  398. pad=1
  399. activation=leaky
  400. [convolutional]
  401. batch_normalize=1
  402. filters=1024
  403. size=3
  404. stride=1
  405. pad=1
  406. activation=leaky
  407. [shortcut]
  408. from=-3
  409. activation=linear
  410. [convolutional]
  411. batch_normalize=1
  412. filters=512
  413. size=1
  414. stride=1
  415. pad=1
  416. activation=leaky
  417. [convolutional]
  418. batch_normalize=1
  419. filters=1024
  420. size=3
  421. stride=1
  422. pad=1
  423. activation=leaky
  424. [shortcut]
  425. from=-3
  426. activation=linear
  427. [convolutional]
  428. batch_normalize=1
  429. filters=512
  430. size=1
  431. stride=1
  432. pad=1
  433. activation=leaky
  434. [convolutional]
  435. batch_normalize=1
  436. filters=1024
  437. size=3
  438. stride=1
  439. pad=1
  440. activation=leaky
  441. [shortcut]
  442. from=-3
  443. activation=linear
  444. [convolutional]
  445. batch_normalize=1
  446. filters=512
  447. size=1
  448. stride=1
  449. pad=1
  450. activation=leaky
  451. [convolutional]
  452. batch_normalize=1
  453. filters=1024
  454. size=3
  455. stride=1
  456. pad=1
  457. activation=leaky
  458. [shortcut]
  459. from=-3
  460. activation=linear
  461. ######################
  462. [convolutional]
  463. batch_normalize=1
  464. filters=512
  465. size=1
  466. stride=1
  467. pad=1
  468. activation=leaky
  469. [convolutional]
  470. batch_normalize=1
  471. size=3
  472. stride=1
  473. pad=1
  474. filters=1024
  475. activation=leaky
  476. [convolutional]
  477. batch_normalize=1
  478. filters=512
  479. size=1
  480. stride=1
  481. pad=1
  482. activation=leaky
  483. [convolutional]
  484. batch_normalize=1
  485. size=3
  486. stride=1
  487. pad=1
  488. filters=1024
  489. activation=leaky
  490. [convolutional]
  491. batch_normalize=1
  492. filters=512
  493. size=1
  494. stride=1
  495. pad=1
  496. activation=leaky
  497. [convolutional]
  498. batch_normalize=1
  499. size=3
  500. stride=1
  501. pad=1
  502. filters=1024
  503. activation=leaky
  504. [convolutional]
  505. size=1
  506. stride=1
  507. pad=1
  508. filters=255
  509. activation=linear
  510. [yolo]
  511. mask = 6,7,8
  512. anchors = 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326
  513. classes=80
  514. num=9
  515. jitter=.3
  516. ignore_thresh = .7
  517. truth_thresh = 1
  518. random=1
  519. [route]
  520. layers = -4
  521. [convolutional]
  522. batch_normalize=1
  523. filters=256
  524. size=1
  525. stride=1
  526. pad=1
  527. activation=leaky
  528. [upsample]
  529. stride=2
  530. [route]
  531. layers = -1, 61
  532. [convolutional]
  533. batch_normalize=1
  534. filters=256
  535. size=1
  536. stride=1
  537. pad=1
  538. activation=leaky
  539. [convolutional]
  540. batch_normalize=1
  541. size=3
  542. stride=1
  543. pad=1
  544. filters=512
  545. activation=leaky
  546. [convolutional]
  547. batch_normalize=1
  548. filters=256
  549. size=1
  550. stride=1
  551. pad=1
  552. activation=leaky
  553. [convolutional]
  554. batch_normalize=1
  555. size=3
  556. stride=1
  557. pad=1
  558. filters=512
  559. activation=leaky
  560. [convolutional]
  561. batch_normalize=1
  562. filters=256
  563. size=1
  564. stride=1
  565. pad=1
  566. activation=leaky
  567. [convolutional]
  568. batch_normalize=1
  569. size=3
  570. stride=1
  571. pad=1
  572. filters=512
  573. activation=leaky
  574. [convolutional]
  575. size=1
  576. stride=1
  577. pad=1
  578. filters=255
  579. activation=linear
  580. [yolo]
  581. mask = 3,4,5
  582. anchors = 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326
  583. classes=80
  584. num=9
  585. jitter=.3
  586. ignore_thresh = .7
  587. truth_thresh = 1
  588. random=1
  589. [route]
  590. layers = -4
  591. [convolutional]
  592. batch_normalize=1
  593. filters=128
  594. size=1
  595. stride=1
  596. pad=1
  597. activation=leaky
  598. [upsample]
  599. stride=2
  600. [route]
  601. layers = -1, 36
  602. [convolutional]
  603. batch_normalize=1
  604. filters=128
  605. size=1
  606. stride=1
  607. pad=1
  608. activation=leaky
  609. [convolutional]
  610. batch_normalize=1
  611. size=3
  612. stride=1
  613. pad=1
  614. filters=256
  615. activation=leaky
  616. [convolutional]
  617. batch_normalize=1
  618. filters=128
  619. size=1
  620. stride=1
  621. pad=1
  622. activation=leaky
  623. [convolutional]
  624. batch_normalize=1
  625. size=3
  626. stride=1
  627. pad=1
  628. filters=256
  629. activation=leaky
  630. [convolutional]
  631. batch_normalize=1
  632. filters=128
  633. size=1
  634. stride=1
  635. pad=1
  636. activation=leaky
  637. [convolutional]
  638. batch_normalize=1
  639. size=3
  640. stride=1
  641. pad=1
  642. filters=256
  643. activation=leaky
  644. [convolutional]
  645. size=1
  646. stride=1
  647. pad=1
  648. filters=255
  649. activation=linear
  650. [yolo]
  651. mask = 0,1,2
  652. anchors = 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326
  653. classes=80
  654. num=9
  655. jitter=.3
  656. ignore_thresh = .7
  657. truth_thresh = 1
  658. random=1