Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4030b08

Browse files
committed
Merge remote-tracking branch 'origin/faster-rcnn' into faster-rcnn
2 parents 0108010 + 0ff1a45 commit 4030b08

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

datasets/pascalvoc_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
tf.app.flags.DEFINE_integer('nb_smpls_train', 22136, '# of samples for training')
3131
tf.app.flags.DEFINE_integer('nb_smpls_val', 500, '# of samples for validation')
3232
tf.app.flags.DEFINE_integer('nb_smpls_eval', 4952, '# of samples for evaluation')
33-
tf.app.flags.DEFINE_integer('batch_size', 32, 'batch size per GPU for training')
33+
tf.app.flags.DEFINE_integer('batch_size', 1, 'batch size per GPU for training')
3434
tf.app.flags.DEFINE_integer('batch_size_eval', 1, 'batch size for evaluation')
3535

3636
# Pascal VOC specifications

nets/vgg_at_pascalvoc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from datasets.pascalvoc_dataset import PascalVocDataset
2727
from utils.misc_utils import is_primary_worker
2828

29+
from utils.external.ssd_tensorflow.preprocessing.ssd_preprocessing import preprocess_image
2930
from utils.external.ssd_tensorflow.net import ssd_net
3031
from utils.external.ssd_tensorflow.utility import anchor_manipulator
3132
from utils.external.ssd_tensorflow.utility import scaffolds
@@ -419,8 +420,8 @@ def __init__(self, data_format='channels_last'):
419420
super(ModelHelper, self).__init__(data_format)
420421

421422
# initialize training & evaluation subsets
422-
self.dataset_train = PascalVocDataset(is_train=True)
423-
self.dataset_eval = PascalVocDataset(is_train=False)
423+
self.dataset_train = PascalVocDataset(preprocess_fn=preprocess_image, is_train=True)
424+
self.dataset_eval = PascalVocDataset(preprocess_fn=preprocess_image, is_train=False)
424425

425426
# setup hyper-parameters & anchor information
426427
self.anchor_info = None # track the most recently-used one

0 commit comments

Comments
 (0)