Coder Social home page Coder Social logo

places2-arranger's Introduction

Places2-Arranger

Python code for re-arranging Places2-large dataset.
Places2 (http://places2.csail.mit.edu/download.html) provides high-resolution images which is not arranged to be used to in Pytorch data loader. This repo provides codes for re-arranging high-resolution Places2 dataset for Pytorch data loader.

Usage

Requirements

  1. Download Places2-large train dataset from http://data.csail.mit.edu/places/places365/train_large_places365standard.tar
  2. Download Places2-large valiation dataset from http://data.csail.mit.edu/places/places365/val_large.tar
  3. Untar two downloaded files to one directory. (~/Places2/ in this example)
tar -C /YOUR_PATH/Places2/ -xvf train_large_places365standard.tar
tar -C /YOUR_PATH/Places2/ -xvf val_large.tar
  1. Download and save this repo's codes in the same directory. Then, ~/Places2/ directory has followings: data_large, val_large, arrange_train.py, arrange_val.py, val.txt.

Use terminal to execute arrange_train.py and arrange_val.py.

python arrange_train.py
python arrange_val.py

Check Number of Total Files

Before run the arranger script, the number of training files is,

/Places2/data_large$ find . -type f | wc -l
1803460

And validation files,

/val_large$ find . -type f | wc -l
36500

After runing the arranger, the number of files for both train and valiation are same as before.

Tested Environments

Ubuntu 16.04 and Ubuntu 18.04
python 3.6 and python 3.7

To Do

Elabarate codes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.