now_common.utils module#

now_common.utils.common_get_flow_env_dict(finetune_settings, encoder_uses, encoder_with, encoder_uses_with, pre_trained_embedding_size, indexer_uses, indexer_resources, user_input, tags)[source]#

Returns dictionary for the environments variables for the clip & music flow.yml files.

now_common.utils.common_setup(app_instance, user_input, dataset, encoder_uses, encoder_uses_with, indexer_uses, pre_trained_embedding_size, kubectl_path, encoder_with={}, indexer_resources={})[source]#
Return type

Dict

now_common.utils.get_indexer_config(num_indexed_samples)[source]#

Depending on the number of samples, which will be indexed, indexer and its resources are determined.

Parameters

num_indexed_samples (int) – number of samples which will be indexed; should incl. chunks for e.g. text-to-video app

Return type

Dict