Coder Social home page Coder Social logo

medusa's Introduction

Medusa ๐Ÿ

Medusa is a python package helpful in dataset creation or modification.

Table Of Contests

Installation

pip install git+https://github.com/sqoshi/medusa.git

Usage

medusa command --arguments

Example: medusa convert /dataset --img-ext jpg

General

Commands

convert

Convert images to other image extension.

argument default description
--input-dir None Path to input directory with images.
--output-dir converted_images Output directory path (does not have to exist)
--img-ext png Target image extension [ jpg,jpeg,webp,png]
first_positional None Allow to pass single image.

detect

Find and crop faces in image.

argument default description
--input-dir None Path to input directory with images.
--output-dir detected_faces Output directory path (does not have to exist)
--img-ext png Target image extension [ jpg,jpeg,webp,png]
--target-width 160 Width of output image.
--target-height 160 Height of output image.
first_positional None Allow to pass single image.

During nvidia graphics card setup you may encounter a lot of bugs (TENSORFLOW).

Possible fixes:

  1. sudo ln -s /usr/local/cuda-11.0/targets/x86_64-linux/lib/libcusolver.so.11 ~/Documents/medusa/venv/lib/python3.8/site-packages/tensorflow/python/libcusolver.so.11
  2. @reboot root for a in /sys/bus/pci/devices/*; do echo 0 | tee -a $a/numa_node; done > /dev/null append to /etc/crontab

medusa's People

Contributors

sqoshi avatar

Watchers

James Cloos avatar  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.