Keras-retinanet: How to load snapshots?

Created on 5 Feb 2018  Â·  9Comments  Â·  Source: fizyr/keras-retinanet

Hi there,

I've tried to load my existing snapshots, but each time it says 'Creating Model..' instead of Loading Model. What do I input on the command line to load my snapshot?

Thanks!

All 9 comments

Let's start with what the command is that you're executing?

I've tried a few things, such as specifying path, but generally (working from memory here):

keras_retinanet/bin/train.py --snapshot resnet50_data_04.h5 csv annotations.csv classes.csv

Try printing the value of args.snapshot on this line.

It seems to work for me at least.

i use this too ,
CUDA_VISIBLE_DEVICES=3 keras_retinanet/bin/train.py \
--snapshot-path /home/jasonma/dev_sdb/models/keras-retinanet/20180920-detect \
--tensorboard-dir /home/jasonma/dev_sdb/models/keras-retinanet/20180920-detect \
--snapshot /home/jasonma/dev_sdb/models/keras-retinanet/20180920-detect/resnet50_pascal_05.h5 \
--batch-size=2 \
--gpu=3 \
pascal /home/jasonma/dev_sdb/data/keras-retinanet-data/

resnet50_pascal_05.h5
but it start
Epoch 1/50
94/10000 [..............................
was not continue from epoch 05,
how should i set it ?
@mattignal @hgaiser

It will start from epoch 1, but with the state of your snapshot.

On Fri, 21 Sep 2018, 07:20 JaosonMa, notifications@github.com wrote:

i use this too ,
CUDA_VISIBLE_DEVICES=3 keras_retinanet/bin/train.py
--snapshot-path
/home/jasonma/dev_sdb/models/keras-retinanet/20180920-detect
--tensorboard-dir
/home/jasonma/dev_sdb/models/keras-retinanet/20180920-detect
--snapshot
/home/jasonma/dev_sdb/models/keras-retinanet/20180920-detect/resnet50_pascal_05.h5

--batch-size=2
--gpu=3
pascal /home/jasonma/dev_sdb/data/keras-retinanet-data/

resnet50_pascal_05.h5
but it start
Epoch 1/50
94/10000 [..............................
was not continue from epoch 05,
how should i set it ?
@mattignal https://github.com/mattignal @hgaiser
https://github.com/hgaiser

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fizyr/keras-retinanet/issues/269#issuecomment-423416470,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArtapwrdAtR3e1PvsGc0PLlz3efszU0ks5udHcngaJpZM4R56S6
.

Incase my training gets stopped at some particular epoch (say 5). Is there any way to restart the training from same epoch 5 ?
TIA

You can use the --snapshot argument.

@hgaiser so do we need to use --snapshot with --weights

@hgaiser so do we need to use --snapshot with --weights

Nope you use one or the other.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

penguinmenac3 picture penguinmenac3  Â·  5Comments

aaronBioBot picture aaronBioBot  Â·  5Comments

CedarYang picture CedarYang  Â·  5Comments

mayur-who picture mayur-who  Â·  5Comments

KwanjaiKJ picture KwanjaiKJ  Â·  3Comments