RSSAmplifier

Alan's Space · Jan 13, 2021

Project: concurrent_inference

0
Sign in to vote or save

GitHub

An example of how to use the multiprocessing package along with PyTorch.

Code pertaining to this Medium post.


What does it do?

Data flow diagram

  • A processes [R] reads images from a folder [Fo] and multiple detection processes [D#] are used to obtain the class wise count of objects in the images and write it to a file [Fi].
  • It uses torch.multiprocessing for multiprocessing, PIL.Image to read the images and tqdm to keep track of the queue.
    processing

Usage

  • Basic usage : $ python count_objects.py -f input_folder -o output_file.log
  • For other options : $ python count_objects.py -h

Read the original on github.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.