Skip to content

New data fit the old model brought more syllables.  #176

@seesaw1992

Description

@seesaw1992

Hi, I applied new data to the existing model, but the results shows more syllables than the previous fitting. My code is:

model = kpms.load_checkpoint(project_dir, model_name)[0]
pca = kpms.load_pca(project_dir)


# load new data (e.g. from deeplabcut)
new_data = new_data  # can be a file, a directory, or a list of files
coordinates, confidences, bodyparts = kpms.load_keypoints(new_data, 'deeplabcut')
data, metadata = kpms.format_data(coordinates, confidences, **config())

# apply saved model to new data
#results = kpms.apply_model(model, pca, data, metadata, project_dir, model_name)
results = kpms.apply_model(model, data, metadata, project_dir, model_name, **config())


# Save results
kpms.save_results_as_csv(results, project_dir, model_name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions