-
Notifications
You must be signed in to change notification settings - Fork 54
Gk dev (ready for review!) #1
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
Conversation
|
Alright, should be ready for review! Quick summary of notable changes:
I would like to get rid of/deprecate dlclive.bench in favor of dlclive.analyze. dlclive.analyze will perform the benchmarking exactly the same way bench did (including saving files in the same manner), but I think that using a dlclive.analyze_videos function will make it more consistent with deeplabcut and more accurately represents its full functionality now. I'm also happy to update analyze with the changes Jonny made to bench -- should definitely include those :) |
|
I would like to reserve |
|
happy to change the name from analyze_videos, but it just feel weird naming the function that allows people to display keypoints/run inference and save labeled videos 'benchmarking'. If that's not a concern, I can change it though |
|
I agree it requires some discussion; my thoughts currently would be that the creating videos is a great thing to add (i.e. this is lighter weight than DLC and gives it some core inference functionality :) -- reminds me though, how it pcutoff set here?-- but I think it's confusing to have the same fxn name that requires diff inputs, i.e. path to model, vs. path to config, etc etc ... so I think it's good to highlight this as a option, but the main utility should be to use as a testscript of sorts, i.e. can you import the package and get "as advertised" speed? Happy for others/your thoughts though :) |
|
the pcutoff here is set by the display_lik parameter -- I can change that to pcutoff throughout the package. I agree mostly that this will primarily be for testing, but analyzing videos may be really important for some experiments -- for the izzy experiment, I'm using it to get DLC keypoints for all frames, from the exact models used for live inference, to compare to tracking obtained live (which will drop frames, and is altered by using a prediction algorithm). For that reason, some form of analyze_videos could end up being a workhorse function. But if the main issue is just the name, the more I think about it, it seems less important -- as long its advertised it'll be hard to miss :) |
MMathisLab
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if you already addressed these :)
|
resolved following as written in the README.md: |
|
plotted points are not matching what is known from DLC |
|
I think it's inverted, and rotated 90 degrees? is that possible? |
|
Are these models exported with TFGPUinference? There's something wrong with the way TFGPU inferefence models are being loaded by DLCLive, but I haven't been able to figure it out (there's seems to be an offset like you see in the pupil network). Exporting a numpy inference model should solve this -- need to make this clear in the readme |
|
All model zoos are exported this way, with the defaults from model_export, so this needs to work... |
|
It’s also not shifted, I confirmed it’s rotated and flipped. |
|
agreed, but I think I need another set of eyes on this... I've spent quite a bit of time on it and can't figure out why. I assume the issue is loading the network because things are working in Bonsai, right? |
MMathisLab
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems bench.py is now obsolete, is this correct?
|
@gkane26 - Gary if you can resolve issues in bench.py PR can be merged now :) |
|
I'm going to implement some changes from the new bench.py into analyze.py, quickly test, then should be good be good! At that point, bench will be deprecated... should we just delete it? |
|
I accepted pretty much all of the changes to bench.py from the master branch and manually incorporated the important changes from bench.py into benchmark.py (which was analyze.py). We should be able to get rid of bench.py now -- I was reluctant to keep it because this is the exact format that we were reading/plotting all of the current benchmark data from, but not it's changed substantially enough that we'd need to update plotting code anyways |
|
yeah I think dropping bench.py might be good; but let's merge this for now :) |
|
@gkane26 can you summarize basecamp discussion on plotting issue; also it was included in this PR no? |
|
Namely it was a plotting bug |




starting PR for review; would be good to get this package in a sharable state soon! :)