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

Stop registering and moving models which have symlinks in the models dir #5973

Merged
merged 2 commits into from Mar 18, 2024

Conversation

brandonrising
Copy link
Collaborator

@brandonrising brandonrising commented Mar 15, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Have you updated all relevant documentation?

  • Yes
  • No

Description

Currently, if there's a model in your models directory that was added via symlink, the model install service will resolve the symlink and move the model. This will stop that behavior and leave it in place.

If a user symlinks the model to the wrong directory in the models dir, it will still move the model. Not sure how we want to handle that situation.

QA Instructions, Screenshots, Recordings

Add a model to your models dir using a symlink and start the app. On main, it'd resolve the symlink and move the model. Now it should handle it as expected.

Merge Plan

This PR can be merged when approved

@github-actions github-actions bot added python PRs that change python files services PRs that change app services labels Mar 15, 2024
@psychedelicious psychedelicious force-pushed the stop-moving-symlinks-in-models-dir branch from 1b4d4a7 to 96453f6 Compare March 18, 2024 00:11
@psychedelicious psychedelicious enabled auto-merge (rebase) March 18, 2024 00:12
@psychedelicious psychedelicious merged commit ea5bc94 into main Mar 18, 2024
14 checks passed
@psychedelicious psychedelicious deleted the stop-moving-symlinks-in-models-dir branch March 18, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants