dgs.utils.utils¶
General utility functions.
Module Functions
|
Given a list of original image paths and a list of target image-crops paths, use the given bounding boxes to extract the image content as image crops and save them as new images. |
|
Given a list of images, use the bounding boxes to extract the respective image crops. |
|
Given a tensor containing the class ids as LongTensor, return the one hot representation as LongTensor. |
|
A decorator that sends a Discord notification when the decorated function completes successfully or fails. |
|
Replace the file extension of a file path with a new type. |
|
Sends a notification message to a Discord channel via a webhook. |
|
Clone and convert torch tensor to numpy. |
Module Classes
Safely disable printing for a block of code. |
|
|
A Wrapper for tracking RAM usage. |