save progress
This commit is contained in:
@@ -111,7 +111,7 @@ def create_extras_file(folder):
|
||||
# create a new pytables file
|
||||
root = '/'.join(folder.split('/')[:-1])
|
||||
type = folder.split('/')[-1]
|
||||
h5file = tb.open_file(os.path.join(root, f'{type}_extras.h5'), mode='w', title='Extras')
|
||||
h5file = tb.open_file(os.path.join(root, f'{type}_extras_test.h5'), mode='w', title='Extras')
|
||||
|
||||
frames = []
|
||||
with open(os.path.join(folder, 'frames_all.txt'), 'r') as f:
|
||||
@@ -119,7 +119,7 @@ def create_extras_file(folder):
|
||||
lines = [line.strip() for line in lines]
|
||||
frames = lines
|
||||
|
||||
for frame in tqdm(frames[:3000]):
|
||||
for frame in tqdm(frames[:1000]):
|
||||
# add a new empty group to the root group for each frame
|
||||
id, frame_nr, garment = frame.split()
|
||||
if not id in h5file.root:
|
||||
|
||||
Reference in New Issue
Block a user