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

Upgrades to support remote zoo models #633

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Upgrades to support remote zoo models #633

merged 2 commits into from
Sep 16, 2024

Conversation

brimoor
Copy link
Contributor

@brimoor brimoor commented Sep 10, 2024

Supporting PR for voxel51/fiftyone#4786

models = []

if name is not None:
subdir = os.path.join(*name.split("/"))
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like it is a no-op? You're splitting then joining it back together again. Do you mean to take out the file name? If so, why not use os.path.dirname(name)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's for windows. Converting org-name/model-name to org-name\model-name if necessary

Copy link
Contributor

Choose a reason for hiding this comment

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

mm I see. A little confusing that name is assigned to subdir then.

Copy link
Contributor

@swheaton swheaton left a comment

Choose a reason for hiding this comment

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

alright lgtm then

@brimoor brimoor merged commit ae07c6f into develop Sep 16, 2024
@brimoor brimoor deleted the remote-zoo-models branch September 16, 2024 13:14
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