Code Monkey home page Code Monkey logo

Comments (7)

jfilter avatar jfilter commented on May 28, 2024 1

Hey, it should work with .xml files right now. Was there any kind of error when you tried it?

from split-folders.

jfilter avatar jfilter commented on May 28, 2024 1

Ah, now I understand your problem. It's related to #14. I will provide an update to fix this soon-ish.

from split-folders.

jfilter avatar jfilter commented on May 28, 2024 1

Set group_prefix=2 to split in groups. It should work now. Please re-open this issue if not. Thanks.

from split-folders.

jfilter avatar jfilter commented on May 28, 2024 1

You right, fixed in 0.4.1. Use group_prefix from now on.

from split-folders.

asmaamirkhan avatar asmaamirkhan commented on May 28, 2024
  • ๐Ÿค” Yes it works but there is a logical error since pairs must be protected in destination folder
  • ๐ŸŽŽ Pair = .xml file + corresponded image file

๐Ÿ‘ฉโ€๐Ÿ”ฌ My Data Sample

class_1
    |__ 526662229047636.jpg
    |__ 526662229047636.xml
    |__ 542621690732488.jpg
    |__ 542621690732488.xml
    |__ 558581152256050.jpg
    |__ 558581152256050.xml
    |__ 574567401623040.JPG
    |__ 574567401623040.xml
.
.
.
Other classes

โœ”๏ธ Expected Possible Output

__train
|  |__ class_1
|      |__ 542621690732488.jpg
|      |__ 542621690732488.xml
|      |__ 558581152256050.jpg
|      |__ 558581152256050.xml
|      |__ 574567401623040.JPG
|      |__ 574567401623040.xml
|__val
   |__ class_1
        |__ 526662229047636.jpg
        |__ 526662229047636.xml

๐Ÿ“– According to VOC format

๐Ÿงช Current Output

__train
|  |__ class_1
|      |__ 542621690732488.jpg
|      |__ 542621690732488.xml
|      |__ 558581152256050.jpg
|      |__ 574567401623040.JPG
|      |__ 574567401623040.xml
|__val
   |__ class_1
       |__ 526662229047636.jpg
       |__ 526662229047636.xml
       |__ 558581152256050.xml

from split-folders.

asmaamirkhan avatar asmaamirkhan commented on May 28, 2024
  • ๐Ÿงช By setting group_prefix=2 I got the following error
TypeError: ratio() got an unexpected keyword argument 'group_prefix'
  • โœ”๏ธ It works fine by setting shared_prefix=2
  • ๐Ÿค” Is group_prefix a typo? @jfilter

๐Ÿ˜… Issue can not be re-opened by issue author if it has been closed by repo owner

from split-folders.

dnth avatar dnth commented on May 28, 2024

Somehow group_prefix doesnt work on CLI but works on the python module. Anyone can verify this?

from split-folders.

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.