How to import the Endpoint package
import innocuous.Endpoint as endpoint
innocuous.Endpoint Methods:
download
save
ModelLoader
checkpoint_path
update_model
save_model
get_model
save_config
get_config
ModelLoader Example
PipelineHelper
last_metric
metric
update_metric
PipelineHelper Example
FileHelper
get
save
import_package
download
Download predict files
endpoint.download(urls)
Arguments |
Type |
urls |
List (urls) |
Result |
List (local file path) |
Example:
def predict(data):
...
files = endpoint.download(data['images'])
...
save
Save predict files
endpoint.save(files)
Arguments |
Type |
files |
List (file) |
Result |
List (local file path) |