You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromeasydictimportEasyDictOPTION=EasyDict()
# ------------------------------------------ data configuration ---------------------------------------------OPTION.trainset='MyDataset'OPTION.valset='MyDataset'OPTION.datafreq= [5, 1] # unusedOPTION.input_size= (384, 384) # input image sizeOPTION.sampled_frames=4# min sampled time length while trianing# OPTION.max_skip = [5, 3] # max skip time length while trianingOPTION.max_skip=3# max skip time length while trianingOPTION.samples_per_video=2# sample numbers per video# ----------------------------------------- model configuration ---------------------------------------------OPTION.keydim=128OPTION.valdim=512OPTION.save_freq=5OPTION.epochs_per_increment=5# ---------------------------------------- training configuration -------------------------------------------OPTION.epochs=120OPTION.train_batch=4OPTION.learning_rate=0.00001OPTION.gamma=0.1OPTION.momentum= (0.9, 0.999)
OPTION.solver='adam'# 'sgd' or 'adam'OPTION.weight_decay=5e-4OPTION.iter_size=1OPTION.milestone= [] # epochs to degrades the learning rateOPTION.loss='both'# 'ce' or 'iou' or 'both'OPTION.mode='recurrent'# 'mask'(记忆网络中存储的是真值) or 'recurrent'(原始论文的循环训练的方式) or 'threshold'OPTION.iou_threshold=0.65# used only for 'threshold' training# ---------------------------------------- testing configuration --------------------------------------------OPTION.epoch_per_test=1# ------------------------------------------- other configuration -------------------------------------------OPTION.checkpoint='mydataset'OPTION.initial='/home/lart/Coding/STM/STM_weights.pth'# path to initialize the backbone# OPTION.initial = '' # path to initialize the backboneOPTION.resume=''# path to restart from the checkpointOPTION.gpu_id='0'# defualt gpu-id (if not specified in cmd)OPTION.workers=4OPTION.save_indexed_format=True# set True to save indexed format png file, otherwise segmentation with original imageOPTION.output_dir='output'
Here, I use the pretrained parameter file STM_weights.pth by STM's author to initialize the model.
Can you give me some advice?
My class reading the dataset (semi-supervised vos):
and the config:
Here, I use the pretrained parameter file
STM_weights.pth
by STM's author to initialize the model.My
train.py
:The text was updated successfully, but these errors were encountered: