Liberian Geek
  • How-To/Tips
  • Linux
  • Windows
  • Ubuntu
  • WordPress
  • Privacy
Select Page

How to Flip an Image Horizontally in PyTorch?

by Michael Stolzer | Nov 22, 2023 | How-To/Tips

PyTorch is a machine-learning library that offers various modules to work with images. The “torchvision.transforms” module from the PyTorch package  has a collection of classes and functions to perform various transformations on images including...

How to Generate Binary Random Numbers from a Bernoulli Distribution in PyTorch?

by Michael Stolzer | Nov 22, 2023 | How-To/Tips

Bernoulli distribution is commonly used in statistics. It is a discrete probability distribution that conducts the outcome (single or failure) of a specific experiment. Its outcomes are usually labeled as “1” and “0”, where 1 symbolizes...

How to Read a PNG or JPEG Image in PyTorch?

by Michael Stolzer | Nov 22, 2023 | How-To/Tips

Reading images is an essential part of computer vision-related and image-processing tasks. In PyTorch, the “torchvision.io” package offers different functions to perform various IO operations. To read PNG or JPEG images, the “image_read()”...

How to Use “GaussianBlur()” in PyTorch?

by Michael Stolzer | Nov 22, 2023 | How-To/Tips

PyTorch is a widely used machine-learning library that offers several modules and tools for working with numerous images. Gaussian blur is the image processing procedure that reduces the noise and sharpness of edges in the image. In PyTorch, the...

How to Pad Tensor Boundaries With a Specific Value in PyTorch?

by Michael Stolzer | Nov 22, 2023 | How-To/Tips

In PyTorch, tensors are essential data structures that can have multiple dimensions. Sometimes, users may want to add extra padding to the 3D or 4D tensors for various reasons, such as maximizing the batch to the largest dimension value and filling each space with the...
« Older Entries
Next Entries »

Looking For Something ?

About Us & Privacy Policy

  • About Us
  • Contact
  • Glossary
  • Privacy Policy
  • Home
  • About Us
  • Privacy
  • Contact
  • Facebook
  • X
  • Instagram
  • RSS

Designed by Elegant Themes | Powered by WordPress