Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About dataset #26

Open
ZacharySha opened this issue Sep 17, 2021 · 10 comments
Open

About dataset #26

ZacharySha opened this issue Sep 17, 2021 · 10 comments

Comments

@ZacharySha
Copy link

Hi, thanks for your work!!!
I didn't find detailed instructions for dataset production in readme. If I want to train my own dataset (PNG and JSON formats), is the data preparation the same as MMdetection?

@jbwang1997
Copy link
Owner

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.

But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

@jbwang1997 jbwang1997 pinned this issue Sep 17, 2021
@hust-lidelong
Copy link

hust-lidelong commented Sep 18, 2021

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.

But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

@jbwang1997
Copy link
Owner

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

@jbwang1997
Copy link
Owner

Hi, thanks for your work!!!
I didn't find detailed instructions for dataset production in readme. If I want to train my own dataset (PNG and JSON formats), is the data preparation the same as MMdetection?

Could you provide the structure of JSON and tell me whether your images need to be split like DOTA dataset?

@hust-lidelong
Copy link

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

my XML annotation is this:
xml.txt

and my images do not need to be split.

@hust-lidelong
Copy link

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

my XML annotation is this:
xml.txt

and my images do not need to be split.

Could you give some advice? Thanks!

@jbwang1997
Copy link
Owner

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

my XML annotation is this:
xml.txt
and my images do not need to be split.

Could you give some advice? Thanks!

Your annotations are quite similar to the VOC dataset.
I recommend your refer xml_style.py and load the rotated box data in data_info.

@hust-lidelong
Copy link

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

my XML annotation is this:
xml.txt
and my images do not need to be split.

Could you give some advice? Thanks!

Your annotations are quite similar to the VOC dataset.
I recommend your refer xml_style.py and load the rotated box data in data_info.

Thanks very much!

@ccccwb
Copy link

ccccwb commented Oct 25, 2021

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

my XML annotation is this:
xml.txt
and my images do not need to be split.

Could you give some advice? Thanks!

Your annotations are quite similar to the VOC dataset.
I recommend your refer xml_style.py and load the rotated box data in data_info.

Thanks very much!

请问您这个问题解决了吗,我现在也打算训练自己的xml数据集,可以说说具体怎么做吗

@EagleHong
Copy link

The data preparation is almost the same as MMDetection. You can refer custom.py for the data structure.
But, you need to pay attention to some details.

  • The form of data['ann']['bboxes'] and data['ann']['bboxes_ignore'] should be a type of bbox defined in BboxToolkit, you can find the bbox definition in the Usage.md (mention: the angle of obb is Counterclockwise)
  • The pipelines of oriented detectors are different from the originals, you can refer to datasets for details. the RandomRotate need cls key in results, so you may need add your classes in the results, like this.

In future updates, I will write the new obb_custom.py for personal datasets.

I am eager to study new obb_custom.py, thanks for publishing as soon as possible. I want to train my own dataset (JPG and XML formats), can you give more especially guidance? Thanks!

Do your images need to be split like DOTA dataset?
Could you provide the structure of your XMLs?

my XML annotation is this:
xml.txt
and my images do not need to be split.

Could you give some advice? Thanks!

Your annotations are quite similar to the VOC dataset. I recommend your refer xml_style.py and load the rotated box data in data_info.

请问[xml_style.py]文件应该怎么使用呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants