GithubHelp home page GithubHelp logo

img-proc's Introduction

img-proc

creating a pyenv

pyenv virtualenv 3.8.0 img-proc
pyenv activate img-proc
python -m pip install --upgrade pip
python -m pip install -r requirements.txt

building the container

docker build -t img-proc:latest .

running from the container

docker run -it --rm -v $(pwd)/workspace:/workspace img-proc:latest python imgfilter.py -i /workspace/in -o /workspace/out

docker run -it --rm -v $(pwd)/workspace:/workspace img-proc:latest python imgslice.py -i /workspace/out -o /workspace/sliced

docker run -it --rm -v $(pwd)/workspace:/workspace img-proc:latest python imgslice.py -r 1 -c 16 -i /workspace/in/gan_reflect01 -o /workspace/sliced -e jpg

image copy

image copy will copy and format such as change a TIF to a PNG.

image colorize

image colorize will use skimage filters to change a file.

python imgcolorize.py -i "$IMG_ROOT/reflect01_png_split" -o "$IMG_ROOT/reflect01_colorize" -c "$(pwd)/projects/$PROJECT/colors.xml"

image filter

python imgfilter.py -i /Users/claytongraham/data/projects/nifty/faces/reflect01_png_split -o /Users/claytongraham/data/projects/nifty/faces/reflect01_grey

image slice

python imgslice.py -i /Users/claytongraham/data/projects/nifty/faces/reflect01_png_scaled -o /Users/claytongraham/data/projects/nifty/faces/reflect01_png_split -c 16 -r 1

image xform

python imgxform.py -i /home/clay/data/projects/nifty/all/reflect01_txt -o /home/clay/data/projects/nifty/all/reflect01_thumb -x scale -v 25

image text

add text overlays python imgtext.py -i /home/clay/data/projects/nifty/all/reflect01_txt -o /home/clay/data/projects/nifty/all/reflect01_thumb -x scale -v 25

running project scripts

bash $(pwd)/projects/reflect/makebase.sh target_1

SCRATCH

python imgxform.py -i /home/clay/data/github.com/claytantor/img-proc/workspace/ghosts_gan/gengan -o /home/clay/data/github.com/claytantor/img-proc/workspace/ghosts_gan/gengan_s -x scale -v 2.775067751

python imgfilter.py -i /home/clay/data/github.com/claytantor/img-proc/workspace/ghosts_gan/gengan_s -o /home/clay/data/github.com/claytantor/img-proc/workspace/ghosts_gan/gengan_g -f rgb2grey

FLASK_APP=app.py APP_CONFIG=app.cfg flask run --host=0.0.0.0 --port=8003

building the container

docker build -t claytantor/loa-img-proc:latest .

from docker

docker run -p 8003:8003 --gpus all --shm-size=1g --ulimit memlock=-1 \
    -e FLASK_ENV=development -e FLASK_APP=app.py -e APP_CONFIG=app.cfg \
    --ulimit stack=67108864 -it --rm -v $(pwd)/workspace:/workspace \
    claytantor/loa-img-proc:latest

img-proc's People

Contributors

claytantor avatar dependabot[bot] avatar

Watchers

 avatar

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.