Skip to content

Yolo duplication fix#1713

Merged
gerth2 merged 78 commits intoPhotonVision:mainfrom
samfreund:yolo-duplication-fix
Jan 13, 2025
Merged

Yolo duplication fix#1713
gerth2 merged 78 commits intoPhotonVision:mainfrom
samfreund:yolo-duplication-fix

Conversation

@samfreund
Copy link
Member

@samfreund samfreund commented Jan 12, 2025

Somebody wanted a description, so here I am.

This PR fixes an error which caused the discoverModels function to be rerun after each upload of a new model, but without clearing the list of available models. This causes any models that were on the list prior to the import to be duplicated. This PR also makes it so that uploading a model automatically updates the list of available models.

Fix Working on the Wrong Branch
@samfreund samfreund requested a review from a team as a code owner January 12, 2025 06:07
forgot to clean that up
@samfreund
Copy link
Member Author

samfreund commented Jan 12, 2025

so it says fix, but it might be broken now. Lemme test. we good now

@samfreund samfreund force-pushed the yolo-duplication-fix branch from 16baa0c to b692ffa Compare January 12, 2025 07:04
@samfreund
Copy link
Member Author

tested on Chris's opi and it works

Copy link
Contributor

@gerth2 gerth2 left a comment

Choose a reason for hiding this comment

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

works

@gerth2 gerth2 self-requested a review January 13, 2025 01:48
@gerth2 gerth2 merged commit 966b9e8 into PhotonVision:main Jan 13, 2025
mcm001 added a commit to mcm001/photonvision that referenced this pull request Feb 18, 2025
Somebody wanted a description, so here I am.

This PR fixes an error which caused the discoverModels function to be
rerun after each upload of a new model, but without clearing the list of
available models. This causes any models that were on the list prior to
the import to be duplicated. This PR also makes it so that uploading a
model automatically updates the list of available models.

---------

Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
@Gold856 Gold856 added frontend Having to do with PhotonClient and its related items backend Things relating to photon-core and photon-server labels Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Things relating to photon-core and photon-server frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants