Skip to content

KeyError in upgrade_config when running predict #1652

Answered by AdeelH
perliedman asked this question in Q&A
Discussion options

You must be logged in to vote

Can you try calling registry.set_plugin_version() inside your register_plugin() function and see if that solves the problem?

Example: https://github.com/azavea/raster-vision/blob/0.20/rastervision_pytorch_learner/rastervision/pytorch_learner/__init__.py#L4-L5

In your case, this would probably be:

def register_plugin(registry):
    registry.set_plugin_version('rastervision.ml2_pipeline', 0)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@perliedman
Comment options

@AdeelH
Comment options

Answer selected by perliedman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants