Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
PET_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김성주
2020-05-16 23:40:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
71958c296d1785b74ef29402b701307847f95c29
71958c29
1 parent
95f7f316
fixed batch loop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
code/yolov3/train.py
code/yolov3/yolov3.ipynb
code/yolov3/train.py
View file @
71958c2
...
...
@@ -114,7 +114,7 @@ with tf.Session() as sess:
loss_total
,
loss_xy
,
loss_wh
,
loss_conf
,
loss_class
=
AverageMeter
(),
AverageMeter
(),
AverageMeter
(),
AverageMeter
(),
AverageMeter
()
### train part
for
i
in
trange
(
args
.
train_batch_num
):
for
i
in
trange
(
args
.
train_batch_num
+
1
):
_
,
__y_pred
,
__y_true
,
__loss
,
__global_step
,
__lr
=
sess
.
run
(
[
train_op
,
y_pred
,
y_true
,
loss
,
global_step
,
learning_rate
],
feed_dict
=
{
is_training
:
True
})
...
...
code/yolov3/yolov3.ipynb
View file @
71958c2
...
...
@@ -1766,7 +1766,7 @@
" loss_total, loss_xy, loss_wh, loss_conf, loss_class = AverageMeter(), AverageMeter(), AverageMeter(), AverageMeter(), AverageMeter()
\n
"
,
"
\n
"
,
" ### train part
\n
"
,
" for i in trange(train_batch_num):
\n
"
,
" for i in trange(train_batch_num
+1
):
\n
"
,
" _, __y_pred, __y_true, __loss, __global_step, __lr = sess.run(
\n
"
,
" [train_op, y_pred, y_true, loss, global_step, learning_rate],
\n
"
,
" feed_dict={is_training: True})
\n
"
,
...
...
Please
register
or
login
to post a comment