Giter Club home page Giter Club logo

Comments (5)

foskyblue avatar foskyblue commented on June 10, 2024 1

in this case, if we just include the extension ".JPG" in the constants then glob should be able to find these files. No?

from cleanvision.

jwmueller avatar jwmueller commented on June 10, 2024

@stefanistrate Thanks for reporting this issue! Agree CleanVision should work across the supported file extensions regardless of their letter case. There was previously some trickiness to ensuring proper behavior across Windows + other OS.

Got any specific code fixes you suggest? PRs are always welcome 😄

And for your use-case, I believe you should still be able to run Imagelab with the filepaths argument instead?

from cleanvision.

stefanistrate avatar stefanistrate commented on June 10, 2024

filepaths could work in my case, although if I have nested directories it becomes the same problem of listing all image files efficiently. What I could recommend instead, in terms of implementation, is to call glob.glob() just once to list all files, then split the extension from each of them and finally match its lowercase version against a set of allowed extensions. This would also have the advantage of not needing to de-duplicate items on Windows.

from cleanvision.

stefanistrate avatar stefanistrate commented on June 10, 2024

Yes, that's correct.

from cleanvision.

jwmueller avatar jwmueller commented on June 10, 2024

should be closed by: #200
Feel free to re-open the issue if you still have problems with developer versions of cleanvision or after next stable release

from cleanvision.

Related Issues (20)

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.