def get_targs_from_fpaths(fpaths):
    targs = []
    for fpath in fpaths:
        classname = fpath.split('/')[(- 1)].split('.')[0]
        targs.append(class_to_idx[classname])
    return targs
def get_targs_from_fpaths(fpaths):
    targs = []
    for fpath in fpaths:
        classname = fpath.split('/')[(- 1)].split('.')[0]
        targs.append(class_to_idx[classname])
    return targs