Skip to content

Commit ed8a886

Browse files
committed
release flickr1M
1 parent c9f3d58 commit ed8a886

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
TensorLayer is a deep learning and reinforcement learning library based on [Google TensorFlow](https://www.tensorflow.org). It provides rich data pre-processing, training, post-processing and serving modules that help researchers and engineers in building complex machine learning workflows.
1919

2020
# What's New
21+
* Release [Flickr dataset loader](http://press.liacs.nl/mirflickr/mirdownload.html), see [load_flickr25k](http://tensorlayer.readthedocs.io/en/latest/modules/files.html#flickr25k) and [load_flickr1M](http://tensorlayer.readthedocs.io/en/latest/modules/files.html#flickr1m).
2122
* Release [SpatialTransformer2dAffineLayer](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#spatial-transformer) for [Spatial Transformer Networks](https://github.com/zsdonghao/Spatial-Transformer-Nets) see [example code](https://github.com/zsdonghao/Spatial-Transformer-Nets).
2223
* Release [Sub-pixel Convolution](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#super-resolution-layer) for Super-resolution see [SRGAN code](https://github.com/zsdonghao/SRGAN)
2324
* Join [Slack](https://join.slack.com/tensorlayer/shared_invite/MTk1MjM0NDk5MDg5LTE0OTcwOTQyNTEtODFjY2QzYjdmZQ) Now.

tensorlayer/files.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,14 @@ def load_flickr1M_dataset(tag='sky', size=10, path="data/flickr1M", n_threads=50
576576
The path that the data is downloaded to, defaults is ``data/flickr25k/``.
577577
n_threads : int, number of thread to read image.
578578
printable : bool, print infomation when reading images, default is False.
579+
580+
Examples
581+
----------
582+
- Use 200k images
583+
>>> images = tl.files.load_flickr1M_dataset(tag='zebra', size=2)
584+
585+
- Use 1 Million images
586+
>>> images = tl.files.load_flickr1M_dataset(tag='zebra')
579587
"""
580588
print("[Flickr1M] using {}% of images = {}".format(size*10, size*100000))
581589
images_zip = ['images0.zip', 'images1.zip', 'images2.zip', 'images3.zip',

0 commit comments

Comments
 (0)