Skip to content

Commit

Permalink
changed the way to determine the batch size for loading data into GPU…
Browse files Browse the repository at this point in the history
… added INFO log
  • Loading branch information
dawnmy committed Apr 19, 2021
1 parent 5815890 commit 3942daa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,15 @@ def detect(self):
self.read_collate_fn = partial(
unlabeled_read_collate_fn, max_len=self.len, pack_seq=self.pack_seq)

self.logger.info('Choose batch size: {}{}{}{} based on the given GPU RAM size {}GB and max read length {}'.format(
colors.BOLD,
colors.OKCYAN,
self.batch_size,
colors.ENDC,
self.args.memory,
self.len
))

if self.chunk_size is None:
self.run()
else:
Expand Down

0 comments on commit 3942daa

Please sign in to comment.