Skip to content

Commit

Permalink
Update load_weights.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nimadorostkar authored Sep 17, 2023
1 parent 7454c2b commit bcecaa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions load_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
from yolov3_tf2.models import YoloV3, YoloV3Tiny
from yolov3_tf2.utils import load_darknet_weights


flags.DEFINE_string('weights', 'weights/yolov3.weights', 'path to weights file')
flags.DEFINE_string('output', 'weights/yolov3.tf', 'path to output')
flags.DEFINE_boolean('tiny', False, 'yolov3 or yolov3-tiny')
flags.DEFINE_integer('num_classes', 80, 'number of classes in the model')

#ttt

def main(_argv):
if FLAGS.tiny:
Expand All @@ -29,6 +31,7 @@ def main(_argv):
logging.info('weights saved')



if __name__ == '__main__':
try:
app.run(main)
Expand Down

0 comments on commit bcecaa5

Please sign in to comment.