๐ XML copy support
See original GitHub issueHello ๐โโ๏ธ,
- ๐ค I suggest you to add
.xml
file copy support according to some flag like--copy_xml
to add supporting to datasets in VOC structure - ๐ You can modify
copy_files
method in some way like the following:
def copy_files(files_type, class_dir, output, prog_bar, copy_xml=False):
"""Copies the files from the input folder to the output folder
"""
# get the last part within the file
class_name = path.split(class_dir)[1]
for (files, folder_type) in files_type:
full_path = path.join(output, folder_type, class_name)
pathlib.Path(full_path).mkdir(parents=True, exist_ok=True)
for f in files:
if not prog_bar is None:
prog_bar.update()
extension = path.splitext(path.split(f)[-1])[-1].lower()
if extension in [".jpg", ".png", ".bmp", "jpeg", "gif"]:
shutil.copy2(f, full_path)
if copy_xml:
xml_f = path.splitext(f)[0] + ".xml"
shutil.copy2(xml_f, full_path)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Importing & copying topics and XML files - Help+Manual
You can import topics and XML topic files to the current topic from the current project, from other Help+Manual projects and from libraries...
Read more >XML Copy Editor
XML Copy Editor. XML Copy Editor is a fast, free, validating XML editor. ... XML Copy Editor is free software released under the...
Read more >XML Copy Editor / Bugs - SourceForge
#. Sort A โ> Z; Sort Z โ> A Summaryโพ. Sort A โ> Z; Sort Z โ> A Milestoneโพ. Sort A...
164 Pretty print...
Read more >Copy a Project Using an XML File - CHOP Research Institute
You can download an XML file of your project that someone else can use to ... Scroll down to the "Copy or Back...
Read more >Use XML to transfer projects in Final Cut Pro - Apple Support
Import and export XML files to transfer details of your libraries, events, projects, and clips between Final Cut Pro and third-party apps and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You right, fixed in
0.4.1
. Usegroup_prefix
from now on.Set
group_prefix=2
to split in groups. It should work now. Please re-open this issue if not. Thanks.