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

deepposekit.import_deeplabcut_labeled_data() #1

Closed
alvarovegahd opened this issue Jun 3, 2019 · 3 comments
Closed

deepposekit.import_deeplabcut_labeled_data() #1

alvarovegahd opened this issue Jun 3, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@alvarovegahd
Copy link

Thanks so much to you and your team for building this good piece of software!

It would be good to be able to import deeplabcut labeled data, so more users can try this software without having to label data again. In deeplabcut there are no skeletons, so maybe the user would provide the h5 deeplabcut labeled data, the frames and the csv of the skeleton. I would like to help to develop code around this but would like to hear your feedback first. I have a bunch of data that would love to try asap with deepposekit.

Pura vida,

@jgraving jgraving added the enhancement New feature or request label Jun 4, 2019
@jgraving
Copy link
Owner

jgraving commented Jun 4, 2019

Thanks for your interest in helping to develop the code. I think the easiest way to proceed on your specific issue is for me to write some generic code for how to implement a h5file from scratch using a randomly generated dataset. I'll upload this to the repo and you can use it to develop a function for converting DLC data to DPK.

I also think the best way to manage contributed code for now is to create separate a contrib module similar to what TF and Keras did during early development. This allows for rapid development of new ideas that may not be fully functional without impacting the functionality of the core codebase. Then as the contributed code becomes more stable and widely used it can be moved to the core package. I'll put this together ASAP.

@jgraving
Copy link
Owner

I've created a repo at https://github.com/jgraving/deepposekit-contrib for user contributions. The notebooks folder has an example for creating dummy data (https://github.com/jgraving/deepposekit-contrib/blob/master/notebooks/dummy_data_example.ipynb), which should help with developing a function to accomplish this. Go ahead and submit a PR to the contrib repo when you've finished developing the function.

@jgraving
Copy link
Owner

We've now added a (experimental) data generator for loading DeepLabCut data (see here for example: https://github.com/jgraving/DeepPoseKit/blob/master/examples/deeplacut_data_example.ipynb). The BaseGenerator class is now abstracted so writing a custom generator is possible with arbitrary data formats. (see here for example: https://github.com/jgraving/DeepPoseKit/blob/master/examples/custom_data_generator.ipynb)

The deepposekit.io API has changed quite a bit, so check out the updated examples for more details: https://github.com/jgraving/DeepPoseKit/tree/master/examples

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

No branches or pull requests

2 participants