Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
PyTorch – FiveCrop Transformation
To crop a given image into four corners and the central crop, we apply FiveCrop() transformation. It's one of the transformations provided by the torchvision.transforms module. This module contains many important transformations that can be used to perform different types of manipulations on the image data.FiveCrop() transformation accepts both PIL and tensor images. A tensor image is a torch Tensor with shape [C, H, W], where C is the number of channels, H is the image height, and W is the image width. If the image is neither a PIL image nor a tensor image, then we first convert it ...
Read MorePyTorch – Randomly change the brightness, contrast, saturation and hue of an image
To randomly change the brightness, contrast, saturation and hue of an image, we apply ColorJitter(). It's one of the transforms provided by the torchvision.transforms module. This module contains many important transformations that can be used to manipulate the image data.ColorJitter() transformation accepts both PIL and tensor images. A tensor image is a PyTorch tensor with shape [C, H, W], where C is the number of channels, H is the image height, and W is the image width.This transform also accepts a batch of tensor images. A batch of tensor images is a tensor with [B, C, H, W]. B is ...
Read MoreHow to crop an image at center in PyTorch?
To crop an image at its center, we apply CenterCrop(). It's one of the transforms provided by the torchvision.transforms module. This module contains many important transformations that can be used to perform manipulation on the image data.CenterCrop() transformation accepts both PIL and tensor images. A tensor image is a PyTorch tensor with shape [C, H, W], where C is the number of channels, H is the image height and W is the image width.This transform also accepts a batch of tensor images. A batch of tensor images is a tensor with [B, C, H, W]. B is the number of ...
Read MoreHow to convert a PyTorch tensor with gradient to a numpy array?
To convert a Torch tensor with gradient to a Numpy array, first we have to detach the tensor from the current computing graph. To do it, we use the Tensor.detach() operation. This operation detaches the tensor from the current computational graph. Now we cannot compute the gradient with respect to this tensor. After the detach() operation, we use the .numpy() method to convert it to a Numpy array.If a tensor with requires_grad=True is defined on GPU, then to convert this tensor to a Numpy array, we have to perform one more step. First we have to move the tensor to ...
Read MoreWhat is an SSL certificate and how does it work?
Secure Sockets LayerSecure Sockets Layer (SSL) is a protocol for encrypting and authenticating data transferred between a web server and an application. When you or your users enter data on your site, it passes via several touch points before arriving at its eventual destination. Without SSL, this data is transferred as plain text, intercepted, or altered by hostile parties. SSL provides point-to-point encryption to ensure data security during transmission.A message authentication code, or MAC, is included in SSL connections to ensure that data is not lost or altered during transmission. This ensures that the data sent is received without being ...
Read MoreWhat is a Whaling Attack?
Whaling AttackA whaling attack is a mode of phishing scam that targets high-ranking executives. Cybercriminals try to dupe their victims into taking adverse actions by impersonating a high-ranking professional. They frequently try to obtain massive wire transfers, sensitive information or infect computers with malware containing misleading links. The latter two indicate that this social engineering method may have long-term effects, as cybercriminals can use the data gathered from a whaling attack to launch additional attacks.Whaling Vs PhisingThe distinction between whaling and other types of phishing lies in the target's specificity.While phishing targets many people at random, and spearphishing targets people ...
Read MoreWhat is Webcam Hacking?
Webcam HackingWebcams are a significant privacy worry, especially since they're built into so many of the gadgets we use daily, such as your phone, tablet, or laptop.Webcam hacking is known as camfecting, and it is the act of gaining access to someone's webcam and turning it on without their knowledge. The camera's operator (i.e., the hacker) can view all that the camera can see.The most common way is to infect a victim's computer with malware that allows hackers access to a connected webcam.During the outbreak of the recent pandemic, the number of camfecting, cases has also increased since most people ...
Read MoreTop Smartphone Scams
Smartphone sales keep increasing at an exponential rate, and it doesn’t look like it’s going down any time soon. It’s one of the most popular appliances in the world. Such a commodity will obviously be subject to scams.As smartphone technology advances, smartphone frauds are becoming a nuisance. The victims of these frauds might lose anything from a few pounds to their entire life savings. As we become increasingly reliant on these gadgets in our everyday lives, it's critical to be aware of the many sorts of mobile scams and how to prevent them. In this article, we will highlight some ...
Read MoreDoes HTTPS mean safe?
As we all know, there are a lot of sites online where many are safe and secure, while there are a lot of insecure and fake websites. These fake websites are utilized mainly by scammers and hackers. They try to use different methods to hack. In this article, we will find out the answers to the following questions −Does HTTPS offer full-fledged safety?How is it different from the standard HTTP connections?How is HTTPS different from HTTP?HTTPS (Hypertext transfer protocol secure) is a much more secure type of HTTP, the most widely used protocol for sending data between a web browser ...
Read MoreHow are Instagram accounts hacked?
You can't argue that Instagram is a social media platform unlike any other; it is a social media platform entirely built around visual media rather than just text. Today with over a billion accounts, Instagram is one of the most popular social media networks. It is now a platform used by almost all businesses, artists and not to forget the influencers.With all this being said, today, Instagram is one of the most looked out targets for cybercriminals, many accounts have been getting hacked, and it can be done in many ways. In this article, we will be discussing some of ...
Read More