You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 1.0.0dev version, I could use a config.yaml and get the prediction scores, customize the anomaly heatmap, etc. with the API. With the Pypi 1.0.1 version, the get_configurable_parameters function is abandoned, and I struggle to use an equivalent for parsing the config.yaml in a script using the API.
Describe the solution you'd like
I would like to have an equivalent of get_configurable_parameters function, usable in the API, in order to use the parameters included in this file, and the API capabilities.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hi @CyrilWW, we will introduce a new method for Datamodule, Model and Engine, called from_config to be able to instantiate these objects with a config file.
# To instantiate a datamoduledatamodule=AnomalibDataModule.from_config("/path/to/your/data/config")
# To instantiate a modelmodel=AnomalyModel.from_config("/path/to/your/model/config")
# To instantiate Engine or all of these aboveengine.from_config("/path/to/your/engine/or/full/config")
It's on our to-do list, but we haven't found time to implement this feature yet.
samet-akcay
changed the title
[Task]: How can I use both the API and a configuration file config.yaml ?
Instantiate Datamodule, Model and Engine from config
Apr 15, 2024
What is the motivation for this task?
With 1.0.0dev version, I could use a
config.yaml
and get the prediction scores, customize the anomaly heatmap, etc. with the API. With the Pypi 1.0.1 version, theget_configurable_parameters
function is abandoned, and I struggle to use an equivalent for parsing theconfig.yaml
in a script using the API.Describe the solution you'd like
I would like to have an equivalent of
get_configurable_parameters
function, usable in the API, in order to use the parameters included in this file, and the API capabilities.Additional context
No response
The text was updated successfully, but these errors were encountered: