mlpack / models

models built with mlpack
https://models.mlpack.org/docs
BSD 3-Clause "New" or "Revised" License
35 stars 41 forks source link

Add convert function. #22

Open kartikdutt18 opened 4 years ago

kartikdutt18 commented 4 years ago

Recently we added support to parse XML files in object detection type datasets. It would nice to have a conversion script that convert CSV, object-detection-tf type, json to XML and vice-versa. A great example is roboflow.ai's convert feature. Let me know if any clarification is needed. Thanks.

mlpack-bot[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! :+1:

kartikdutt18 commented 4 years ago

Keep Open.

heisenbuug commented 4 years ago

Hey @kartikdutt18 I want to start working on this issue, I hope it's still open...

kartikdutt18 commented 4 years ago

Hey @heisenbuug, please feel to pursue it, it's still open.

heisenbuug commented 4 years ago

Can you just get me the link for that roboflow.ai's convert function?

kartikdutt18 commented 4 years ago

Sure, You can select the convert option in the link to see it's functionalities.

heisenbuug commented 4 years ago

@kartikdutt18 we need something like this https://github.com/xhallix/PyCsv2Xml right? But also for all the specified formats.

heisenbuug commented 4 years ago

I will start working on converting csv to xml. I have some doubt

kartikdutt18 commented 4 years ago

Where exactly do you wanna put this convert function?

I think we could add this to the utility folder or maybe create a new directory.

I will have to use a xml parser for this task as well, I was thinking about TinyXML Do you have anything specific in mind if not this?

We already use boost xml parser, Refer LoadObjectDetectionDataLoader in Dataloader class.

heisenbuug commented 4 years ago

For now I just need a check on the logic.

kartikdutt18 commented 4 years ago

Looks good to me, maybe in the PR we could wrap it in a class and have a member function called CSVToXML or some better name.

heisenbuug commented 4 years ago
kartikdutt18 commented 4 years ago

Sure, makes sense.

Rajat-Rao-R commented 3 years ago

Hey @kartikdutt18 wanted to start from somewhere , found this . Is it still open ?

kartikdutt18 commented 3 years ago

Hey @Rajat-Rao-R, Yes its open. @heisenbuug opened a promising PR #33 for this issue. Maybe you can build upon that / or take inspiration from it.

Rajat-Rao-R commented 3 years ago

@kartikdutt18 I have some doubt You were referring to roboflow https://roboflow.com/convert/coco-json-to-pascal-voc-xml , here the conversions are model specific but the conversion that heisenbuug did is csv to xml only So do we need to be specific or we just need conversion mechanism .

kartikdutt18 commented 3 years ago

I think we should be able to accommodate both. We can have static function that simply converts data from one format to other. Other than that, we can model / dataset specific conversion. This can be done by having separate functions or we can pass two strings and store a map that internally calls the correct function. Let me know what you think.

Rajat-Rao-R commented 3 years ago

Yeah this will be better , because it will keep things clean and we can accommodate different models smoothly then .

deeplearningera commented 3 years ago

@kartikdutt18 Can I also work upon?

kartikdutt18 commented 3 years ago

Sure. Feel free to pursue this.

deeplearningera commented 3 years ago

Sure. Feel free to pursue this.

Thanks!

I have also commented here, please acknowledge it.

kartikdutt18 commented 3 years ago

You need to ask @heisenbuug for that. If he gets a chance, he will reply to you on the thread.

deeplearningera commented 3 years ago

Okay

deeplearningera commented 3 years ago

You need to ask @heisenbuug for that. If he gets a chance, he will reply to you on the thread.

Tell me one thing, if he acknowledges and I make appropriate changes, then will it be considered as a PR?

Actually I am new to open source.

heisenbuug commented 3 years ago

@deeplearningera this is almost done, you can pick any new type of conversion by going through the issue. If you have any doubts regarding how to implement you can ping me anytime...

ritikaa29 commented 10 months ago

@kartikdutt18 Can I work on this issue ? Is it still open?