Method: DeepStack::CustomModel#custom_model
- Defined in:
- lib/deep_stack/custom_model.rb
#custom_model(model, image, **options) ⇒ Array? Also known as: custom_inference
Return predictions using a custom model. Custom models are *.pt models that have been saved in DeepStack’s modelstore directory. See docs.deepstack.cc/custom-models/deployment/index.html
19 20 21 22 |
# File 'lib/deep_stack/custom_model.rb', line 19 def custom_model(model, image, **) target = "vision/custom/#{model}" api_post(target, image, **)&.dig('predictions') end |