Skip to content

Commit

Permalink
change data numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
dwSun authored and dwSun committed Dec 13, 2017
1 parent 01c7275 commit ab806a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions datasets/convert_quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

from datasets import dataset_utils

_NUM_VALIDATION = 5000
_NUM_VALIDATION = 10000

# Seed for repeatability.
_RANDOM_SEED = 0
Expand All @@ -52,10 +52,11 @@ def __init__(self):
# Initializes function that decodes RGB JPEG data.
self._decode_jpeg_data = tf.placeholder(dtype=tf.string)
self._decode_jpeg = tf.image.decode_jpeg(self._decode_jpeg_data, channels=3)
self._decode_jpeg = tf.image.resize_images(self._decode_jpeg, (320, 320))

def read_image_dims(self, sess, image_data):
image = self.decode_jpeg(sess, image_data)
return image.shape[0], image.shape[1]
#image = self.decode_jpeg(sess, image_data)
return 320, 320

def decode_jpeg(self, sess, image_data):
image = sess.run(self._decode_jpeg,
Expand Down
4 changes: 2 additions & 2 deletions datasets/quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

_FILE_PATTERN = 'quiz_%s_*.tfrecord'

SPLITS_TO_SIZES = {'train': 45000, 'validation': 5000}
SPLITS_TO_SIZES = {'train': 50000, 'validation': 10000}

_NUM_CLASSES = 100
_NUM_CLASSES = 200

_ITEMS_TO_DESCRIPTIONS = {
'image': 'A color image of varying size.',
Expand Down

0 comments on commit ab806a3

Please sign in to comment.