-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Style changes to make Sphinx generate nice looking docs + Added information
- Loading branch information
1 parent
c7e7715
commit f7efca8
Showing
10 changed files
with
237 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
class ModelBase(object): | ||
""" | ||
Base class for contributer models. Currently this is merely an interface | ||
Abstract base class for contributer models. Currently this is merely an interface | ||
definition that all contributer implemented models have to follow. | ||
""" | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def infer(self, input): | ||
""" | ||
Abstract method. Overwrite this method to implement the inference of a model. | ||
Args: | ||
input (str): Input file name. | ||
Returns: | ||
Converted inference results into format as defined in the model configuration. | ||
Usually should return the result of | ||
:func:`\<YourImageProcessor\>.computeOutput<modelhublib.processor.ImageProcessorBase.computeOutput>` | ||
""" | ||
raise NotImplementedError("This is a method of an abstract class.") | ||
|
Oops, something went wrong.