Skip to content

Instantly share code, notes, and snippets.

@raulqf
raulqf / Install_OpenCV4_CUDA11_CUDNN8.md
Last active May 6, 2024 09:25
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:

@nixeneko
nixeneko / time_popcount.py
Created March 2, 2018 08:42
Calculate the execution times of popcount functions
# coding: utf-8
def dummy(n):
return 0
def popcnt0(n):
c = 0
for i in range(64):
c += (n >> i) & 1
@gyglim
gyglim / tensorboard_logging.py
Last active August 23, 2023 21:29
Logging to tensorboard without tensorflow operations. Uses manually generated summaries instead of summary ops
"""Simple example on how to log scalars and images to tensorboard without tensor ops.
License: BSD License 2.0
"""
__author__ = "Michael Gygli"
import tensorflow as tf
from StringIO import StringIO
import matplotlib.pyplot as plt
import numpy as np