mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-07 13:32:10 -07:00
splitting large files
This commit is contained in:
parent
30cc36c8e4
commit
ee7d471f20
16 changed files with 805308 additions and 7 deletions
16
misc/split_large_files.py
Normal file
16
misc/split_large_files.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from pathlib import Path
|
||||
from xlib.file import SplittedFile
|
||||
|
||||
def split_large_files():
|
||||
repo_root = Path(__file__).parent.parent
|
||||
|
||||
files_list = [ (repo_root / 'modelhub' / 'onnx' / 'S3FD' / 'S3FD.onnx', 48*1024*1024),
|
||||
(repo_root / 'modelhub' / 'torch' / 'S3FD' / 'S3FD.pth', 48*1024*1024),
|
||||
(repo_root / 'modelhub' / 'cv' / 'FaceMarkerLBF' / 'lbfmodel.yaml', 34*1024*1024),
|
||||
]
|
||||
|
||||
for filepath, part_size in files_list:
|
||||
print(f'Splitting {filepath}...')
|
||||
SplittedFile.split(filepath, part_size=part_size, delete_original=False)
|
||||
|
||||
print('Done')
|
Loading…
Add table
Add a link
Reference in a new issue