OlafenwaMoses / ImageAI

A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities
https://www.genxr.co/#products
MIT License
8.55k stars 2.19k forks source link

How to load multi model files? #151

Closed woshichuanqilz closed 5 years ago

woshichuanqilz commented 5 years ago

I have many model files, can I load some of them once ?

I check the setModelPath function seems not support a list input as files.

    def setModelPath(self, model_path):
        """
        'setModelPath()' function is required and is used to set the file path to the model adopted from the list of the
        available 4 model types. The model path must correspond to the model type set for the prediction instance object.

        :param model_path:
        :return:
        """
        self.modelPath = model_path
OlafenwaMoses commented 5 years ago

See this article for latest update on this.

https://towardsdatascience.com/the-story-and-future-of-imageai-one-year-anniversary-e63c80f527c8

OlafenwaMoses commented 5 years ago

@woshichuanqilz Thanks very much for your patience. We have released a new version (v2.0.3) that allows you to run multiple custom models at once. See the link below on this.

https://github.com/OlafenwaMoses/ImageAI/blob/master/imageai/Prediction/CUSTOMPREDICTION.md#custompredictionmultiple

Also visit https://github.com/OlafenwaMoses/ImageAI to learn more on all the new features.