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

MVP here we come #2

Merged
merged 14 commits into from
Mar 10, 2022
Merged

MVP here we come #2

merged 14 commits into from
Mar 10, 2022

Conversation

CBroz1
Copy link

@CBroz1 CBroz1 commented Mar 4, 2022

Commits

Changes

  • README: add note on dependency conflict numpy==1.2
  • dlc.py:
    • remove arg for get_dlc_processed_dir
    • Add note on scorer_legacy
    • add docstrings
    • add note on continue from prev snapshot
    • add set shuffle/trainindex/maxiters to int for model training make
    • BodyPart.insert_new - refactor logic for yaml type check
    • Model.insert_new_model - refactor config yaml type check
      • Add scorer legacy check
      • add dlc version insertion
      • add body part description arg
    • ModelEvaluation - make items nullable bc saw eval that didn't return some value
      • refactor config yaml type check
    • PoseEstimationTask - permit estimation paramset to pass to analyze_videos
      • Type set to string for concatenating output dir
      • add insert helper function
    • PoseEstimation - permit output_dir as fullpath, per 'relative' arg in task table
      • permit passing analyze_videos params
  • dlc_reader:
    • add conditional logic for if passed the output dir instead of project dir
    • assumes output dir is under project dir
    • do_pose_estimation - permit args passed from PoseEstimationTask.params

CBroz1 and others added 7 commits February 3, 2022 09:10
Add functions to link tables
prototype revision no 2
README: add note on dependency conflict numpy==1.2

dlc schema:
- remove arg for get_dlc_processed_dir
- Add note on scorer_legacy
- add docstrings
- add note on continue from prev snapshot
- add set shuffle/trainindex/maxiters to int for model training make
- BodyPart.insert_new - refactor logic for yaml type check
- Model.insert_new_model - refactor config yaml type check
    - Add scorer legacy check
    - add dlc version insertion
    - add body part description arg
- ModelEvaluation - make items nullable bc saw eval that didn't return some value
    - refactor config yaml type check
- PoseEstimationTask - permit estimation paramset to pass to analyze_videos
    - Type set to string for concatenating output dir
    - add insert helper function
- PoseEstimation - permit output_dir as fullpath, per 'relative' arg in task table
    - permit passing analyze_videos params

dlc_reader:
- add conditional logic for if passed the output dir instead of project dir
- assumes output dir is under project dir
- do_pose_estimation - permit args passed from PoseEstimationTask.params
Copy link
Owner

@ttngu207 ttngu207 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a number of comments/suggestions, please review

Copy link
Author

@CBroz1 CBroz1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had some follow-up questions

PEP8
README: add note on dependency conflict numpy==1.2
/images/: update diagram
dlc schema:
- remove arg for get_dlc_processed_dir
- Add note on scorer_legacy
- add docstrings
- add note on continue from prev snapshot
- add set shuffle/trainindex/maxiters to int for model training make
- add `TrainingVideo` table for training instead of `VideoRecording`
    - `LabeledFrame` -> `File` generalizable part table
- BodyPart.insert_new
    - refactor logic for yaml type check
    - separate BodyPart functions - return list then insert
- Model.insert_new_model - refactor config yaml type check
    - Add scorer legacy check
    - add dlc version insertion
- ModelEvaluation - make items nullable bc saw eval that didn't return some value
    - refactor config yaml type check
- PoseEstimationTask - permit estimation paramset to pass to analyze_videos
    - Type set to string for concatenating output dir
    - add insert helper function
- PoseEstimation - permit output_dir as fullpath, per 'relative' arg in task table
    - permit passing analyze_videos params
    - permit null analyze_video_param
dlc_reader:
- prev had separate output dir and project dir... removing
- do_pose_estimation - permit args passed from PoseEstimationTask.params
- adjust yml_path in reader to remove dlc_dir.parent
Apply suggestions from code review
@CBroz1
Copy link
Author

CBroz1 commented Mar 9, 2022

Ran through full pipeline here - Made some tweaks to resolve dlc_reader issue, where DLC expects the project path when generating pose estimation.

@CBroz1 CBroz1 requested a review from ttngu207 March 9, 2022 21:59
@ttngu207 ttngu207 merged commit 015843a into ttngu207:main Mar 10, 2022
ttngu207 pushed a commit that referenced this pull request Oct 6, 2023
Update schema split: `train`, `model`
ttngu207 pushed a commit that referenced this pull request Oct 6, 2023
Pushing from `cbroz1:dev` discussion to `datajoint:main`
ttngu207 pushed a commit that referenced this pull request Sep 20, 2024
Add computed table `LabeledVideo`
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

Successfully merging this pull request may close these issues.

2 participants