Skip to content

Instantly share code, notes, and snippets.

View souljaboy764's full-sized avatar

Vignesh Prasad souljaboy764

View GitHub Profile
@ariseff
ariseff / asymkl.py
Created September 24, 2020 20:09
Visualizing KL divergence asymmetry with manim
"""
Source code for this visualization of KL divergence asymmetry:
https://twitter.com/ari_seff/status/1303741288911638530
KL computation is based on
https://tuananhle.co.uk/notes/reverse-forward-kl.html
Install manim (https://github.com/3b1b/manim) and run with:
$ manim asymkl.py AsymKL -pl
"""
@WetHat
WetHat / PY-Drawing3D.ipynb
Last active May 31, 2024 13:08
Matplotlib: 3D Arrows and 3D Annotations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raulqf
raulqf / Install_OpenCV4_CUDA11_CUDNN8.md
Last active June 11, 2024 15:44
How to install OpenCV 4.5 with CUDA 11.2 in Ubuntu 22.04

How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 22.04

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

@pgorczak
pgorczak / dragon_pointcloud.py
Created August 16, 2018 16:26
Demo for fast numpy to ROS PointCloud2 conversion. Draws a colorful Dragon Curve :)
import numpy as np
from matplotlib.cm import get_cmap
import rospy
import sensor_msgs.msg as sensor_msgs
import std_msgs.msg as std_msgs
def point_cloud(points, parent_frame):
""" Creates a point cloud message.
@lucasw
lucasw / create_cloud_xyzrgb.py
Created April 25, 2018 00:08
Create PointCloud2 with python with rgb
#!/usr/bin/env python
# PointCloud2 color cube
# https://answers.ros.org/question/289576/understanding-the-bytes-in-a-pcl2-message/
import rospy
import struct
from sensor_msgs import point_cloud2
from sensor_msgs.msg import PointCloud2, PointField
from std_msgs.msg import Header