from ..datasets.get_dataset import get_datasets
from ..recognition.get_model import get_model as get_rec_model
from ..models.get_model import get_model as get_gen_model
import pdb

def get_model_and_data(parameters):
#    pdb.set_trace()
    datasets = get_datasets(parameters)
    
    if parameters["modelname"] == "recognition":
        model = get_rec_model(parameters)
    else:
        model = get_gen_model(parameters)
    return model, datasets

from ..datasets.get_dataset import get_datasets
from ..recognition.get_model import get_model as get_rec_model
from ..models.get_model import get_model as get_gen_model
import pdb

def get_model_and_data(parameters):
#    pdb.set_trace()
    datasets = get_datasets(parameters)
    
    if parameters["modelname"] == "recognition":
        model = get_rec_model(parameters)
    else:
        model = get_gen_model(parameters)
    return model, datasets

#    pdb.set_trace()