-
Notifications
You must be signed in to change notification settings - Fork 40
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
[BUG] Reinstallation of models does not work as expected #253
Comments
@ots22 I noticed our previous solution still doesn't quite have the desired effect, I can have a look at this a bit later |
Participants in a workshop where the aim was to add a model package to the scivision catalog found that when they were editing (new commits) the model package, then using Can we make it so the behaviour of
Perhaps the only way to make the above work is if the model developer is careful to increment their package version with each new commit (or PR, feature, bug fix etc) - then this might be easier to get pip to make sure it installs the latest version (if installing the latest GH commit is not a feature pip supports), but we could then ensure the model developer docs are clear that this is what you should do |
Is the problem that the PRs were buggy, or that we now want different behaviour? Actually, is Can the desired behaviour be achieved just with the various arguments to pip? This seems preferable to doing any kind of version checking and reinstallation of packages ourselves. |
The "force" option means that the package will be re-installed, even if it already exists (as will dependencies) - what I think I found previously (testing this now) was that this didn't result in any newer version of the package being installed if it existed, despite the fact we're giving pip these args: Instead, perhaps we could simply do |
hmmm, good point, well we could separate into 2 separate functions, or even just encourage to do |
^ could even have a function like
which simply prints out:
|
Some other things that seem like advantages of installing packages 'outside' scivision:
Disadvantage:
|
As things are now, whether we auto-install or not, we still have to load the model yml file and import the right package (it just might not be necessary to install it automatically), so that stays the same I think |
It seems like in pretty much all of the examples, we can't assume the model is already installed, so need this argument anyway. |
The "force" way definitely seems like a kludge. I wonder why we didn't think of |
Agree with your thoughts, I'll work on a PR for this and can see what people think |
I haven't tested it, but I wouldn't expect removing force reinstall to mean that model updates are installed correctly |
Describe the bug
Previous attempts #223 & #249 have not resulted in expected behaviour.
How To Reproduce
First, install a model from scivision catalog, where
model_repo
is the link to. the pip installable GitHub repo.Then, modify the code in the
model_repo
, push changes to GitHub and reinstall in scivision:Expected behaviour
Changes made to the model code should be present when the model is used after reinstallation.
Currently, you have to manually do
pip uninstall model_package_name
and then re-runload_pretrained_model
for changes to be picked up.The text was updated successfully, but these errors were encountered: