Comments (7)
Hey, it should work with .xml files right now. Was there any kind of error when you tried it?
from split-folders.
Ah, now I understand your problem. It's related to #14. I will provide an update to fix this soon-ish.
from split-folders.
Set group_prefix=2
to split in groups. It should work now. Please re-open this issue if not. Thanks.
from split-folders.
You right, fixed in 0.4.1
. Use group_prefix
from now on.
from split-folders.
- ๐ค 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.
- ๐งช 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.
Somehow group_prefix
doesnt work on CLI but works on the python module. Anyone can verify this?
from split-folders.
Related Issues (20)
- It would be better to have option of moving images rather than copying
- How to access file once created HOT 1
- splitfolders is not copying files but execute without error HOT 2
- To speed up, use "ln -s" instead of "cp" ? HOT 1
- AttributeError: 'PosixPath' object has no attribute 'rstrip' HOT 1
- Splitting all numbers of files of a folder into train val test using fixed will throw an error HOT 1
- Feature Request: output filepaths in lists without moving or copying files HOT 6
- Feature Request : Specify file format(s) HOT 1
- group_by_prefix function finding multiple matches
- Feature Request : Automatically set an optimal default for fixed when oversampling
- Feature Request: Train/Test split by file HOT 1
- Feature Request: Stratify Train/Test by Class
- Need to split time series data into train/val/test, but cannot shuffle
- There is still an error in split_class_dir_fixed
- Feature request
- Feature request: ratio() classes structure option argument HOT 1
- I am unable to create train/test/val folders
- Feature request: Split with Cross Validation
- Feature request: Input folder path
- Can this library works with txt files?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from split-folders.