raiseValueError("ERROR when trying to index VIPS model %s: VIPS model %s has the same ID (%s). Please check your model installations"%(vipsmodel_subclass,possible_duplicate,vipsmodel_instance.model_id))
returnmodels
defget_model_instance(model_id):
global_models
if_modelsisNone:
print("Indexing models")
_models=discover_models()
return_models.get(model_id)()
defget_vips_model_packages():
global_packages
if_packagesisNone:
discover_models()
return_packages
# USAGE EXAMPLE. REMOVE when U start using the module from elsewhere