Skip to content

Commit

Permalink
Fix GDrive rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroich committed Jul 1, 2021
1 parent c5b4b74 commit f8f5d2d
Show file tree
Hide file tree
Showing 3 changed files with 891 additions and 884 deletions.
1,768 changes: 886 additions & 882 deletions notebooks/inference_playground.ipynb

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion training/coaches/single_id_coach.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def train(self):
use_ball_holder = True

for fname, image in tqdm(self.data_loader):
torch.cuda.empty_cache()
image_name = fname[0]

self.restart_training()
Expand Down
6 changes: 5 additions & 1 deletion utils/align_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
def pre_process_images(raw_images_path):
current_directory = os.getcwd()


IMAGE_SIZE = 1024
predictor = dlib.shape_predictor(paths_config.dlib)
os.chdir(raw_images_path)
Expand All @@ -24,8 +23,13 @@ def pre_process_images(raw_images_path):
except Exception as e:
print(e)

os.makedirs(paths_config.input_data_path, exist_ok=True)
for image, name in zip(aligned_images, images_names):
real_name = name.split('.')[0]
image.save(f'{paths_config.input_data_path}/{real_name}.jpeg')

os.chdir(current_directory)


if __name__ == "__main__":
pre_process_images('')

0 comments on commit f8f5d2d

Please sign in to comment.