question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

๐Ÿ“œ XML copy support

See original GitHub issue

Hello ๐Ÿ™‹โ€โ™€๏ธ,

  • ๐Ÿค” 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jfiltercommented, Aug 5, 2020

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

1reaction
jfiltercommented, Aug 4, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found