Skip to content

nhduong/ssin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

dpp

  • Extract
    tar -xf file_name.tar -C /target/directory
    unzip file.zip -d path
  • Train
    wget https://raw.githubusercontent.com/nhduong/ssin/master/scripts/tar_extract_script.sh
    sh tar_extract_script.sh
#!/bin/bash
for f in *.tar; do
  d=`basename $f .tar`
  mkdir $d
  (cd $d && tar xf ../$f && rm -r ../$f)
done
  • Train (tiny)
    wget https://raw.githubusercontent.com/nhduong/ssin/master/scripts/tiny-imagenet-200-train.sh
    sh tiny-imagenet-200-train.sh
#!/bin/bash
for d in tiny-imagenet-200/train/*/; do
  for f in $d/images/*.JPEG; do
    mv $f $d
  done
done
  • Val
    wget https://raw.githubusercontent.com/nhduong/ssin/master/scripts/valprep.sh
    sh valprep.sh
  • Resizing images recursively based on minwidth and minheight
    find . -name '*.JPEG' -execdir sh -c "mogrify -resize '256x256^' *.JPEG" {} \;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages