GithubHelp home page GithubHelp logo

ae9is / ezsam Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 6.9 MB

Extract objects from images or video via text prompt

Home Page: https://www.ezsam.org/

License: GNU Affero General Public License v3.0

Python 95.93% Shell 4.07%
grounded-segment-anything groundingdino segment-anything ai image-editing video-editing background extract filter foreground

ezsam's People

Contributors

ae9is avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ezsam's Issues

Binary release

Create binary executable of gui (for ex. via pyinstaller)

Remove safety tool

Safety tool isn't catching vulnerabilities and currently its dependency chain introduces a couple vulnerabilities by pinning the cryptography library to an old version. Easiest to just remove it.

safety = { shell = "pdm export -o requirements.txt && safety check -r requirements.txt --bare" }

Docs project missing pre-commit hooks

Dependabot only scans requirements.txt for vulnerabilities, not pdm.lock files.

Need to create pre-commit hooks for /docs project so that docs/requirements.txt is kept in sync.

GroundingDINO config file requirement

GroundingDINO groundingdino.util.inference.Model() constructor requires a path to a config file, and dev installs of the app come with the config file at the default location (config/GroundingDINO_SwinT_OGC.py). However, wheel installs don't ship with the config and this requires the end user to grab the config file themselves, which isn't a great new user experience.

Could rework app to automatically create and pass a temporary config file to Model()

Simplify monorepo

With the decision to bundle ezsam-gui with ezsam (cli), might as well restructure the monorepo to something simpler like pdm project's format: https://github.com/pdm-project/pdm

This means eliminating the packages/ directory and moving packages/app into the project root.

Make workflow broken

Make workflow binary build works fine, but some other issues remain with the make workflow itself (caching, size limitations)

ref: #42 #43

Docs site

Documentation site for github pages

Support GIF input

Could rework video file input code to support GIF input, or at least document. Current state is unexpected since GIF output is supported.

FFmpeg/ImageMagick dependency check

Could check whether ffmpeg and convert (ImageMagick's convert tool) are installed, when required for video output modes, and terminate early with descriptive user error messages

Inverse prompting

Add ability to inverse prompt selection, and/or add negative prompting at the same time as positive prompting

GUI package

Could create GUI and binary executable via pyinstaller

CUDA out of memory

Sometimes jobs can occasionally fail even when previously run successfully on the same image with the same GPU, throwing an exception like Error processing file examples/car-1.jpg: CUDA out of memory. Tried to allocate...

This is a PyTorch issue, but could explicitly delete objects referencing PyTorch and try to get PyTorch to free up allocated GPU memory via torch.cuda.empty_cache()

ref: https://github.com/ae9is/ezsam/tree/main/packages/cli#gpu-memory-troubleshooting

Cache folder

Could move ./models and ./config folders to a new cache folder ~/.cache/ezsam

Handle prompt failure

When prompts fail to pass threshold to match any objects, the error message (`Error processing file [input]: list indices must be integers or slices, not NoneType) is not intuitive right now. Need to handle exception and fail gracefully

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.