Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
529 B
3
Indexable
Never
print( f'Path: { home_directory} !' )

if not os.path.exists(os.path.join(home_directory,".cache/torch/hub/checkpoints/resnet18-f37072fd.pth")):
    if not os.path.exists(os.path.join(home_directory,".cache/torch/hub/checkpoints")):
        os.makedirs(os.path.join(home_directory,".cache/torch/hub/checkpoints"))
    shutil.copyfile("/home/vaibhav/PycharmProjects/tableTD-TSR/table-transformer/check/torch/hub/checkpoints/resnet18-f37072fd.pth",os.path.join(home_directory,".cache/torch/hub/checkpoints/resnet18-f37072fd.pth"))