def load_model(ckpt_path, device="cuda"):

    '''
        load the frame interpolation model.
    '''
    network_cfg = AMT_G
    network_name = network_cfg['name']
    print(f'Loading [{network_name}] from [{ckpt_path}]...')
    model = build_from_cfg(network_cfg)
    ckpt = torch.load(ckpt_path)
    model.load_state_dict(ckpt['state_dict'])
    model = model.to(device)
    model.eval()
    return model
load the frame interpolation model.
opensora/models/frame_interpolation/interpolation.py