This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04 | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt remove --purge -y 'cuda*' 'nvidia-*' | |
sudo add-apt-repository --remove -y ppa:graphics-drivers/ppa | |
sudo apt update | |
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install CUDA 10.0 on a "fresh" Ubuntu 18.04 LTS machine. | |
# | |
# update: July 2019 | |
# author: Marco Carletti | |
# | |
# Deep Learning frameworks requirements: | |
# PyTorch 1.1.0 -- CUDA 10.x | |
# TensorFlow-pgu 1.13.x or higher -- CUDA 10.0, cuDNN 7.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
echo "Not running as root" | |
exit 1 | |
fi | |
apt update | |
apt upgrade -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Marco Carletti | |
# Date: May 2022 | |
# Version: 0.2.0 | |
# Last update: July 17, 2023 | |
# Changed comments, tested versions and added other distros info, such as Debian and Fedora. | |
# Thanks to everyone for comments, suggestions, fixes and testings! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
# Tested on: | |
# ubuntu 18.04 (kernel 4.15.0-58-generic x86_64 GNU/Linux) | |
# gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 | |
# cuda 8.0 (/usr/local/cuda-8.0) | |
git clone https://github.com/zju3dv/pvnet.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Name of Application | |
GenericName=Application | |
GenericName[it]=Applicazione | |
Comment=Cool app, very useful | |
Comment[it]=Applicazione molto utile e intrigante | |
Categories=cat1;cat2;... | |
Keywords=kw1;kw2;... | |
Encoding=UTF-8 | |
Exec=/path/to/executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================================== | |
# Assumo che la struttura del progetto sia la seguente: | |
# | |
# . | |
# ├── include | |
# │ └── engine | |
# │ └── ... | |
# ├── sources | |
# │ └── ... | |
# ├── examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from wordcloud import WordCloud | |
filename = sys.argv[1] | |
print(filename) | |
text = open(filename, "r").read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Convert a cv::Mat frame to a QPixmap and show it in a Qt object. | |
* | |
* Parameters | |
* ---------- | |
* frame : cv::Mat | |
* Input image in BGR format. | |
*/ | |
void updateImageFrameToQLabel(cv::Mat& frame) | |
{ |
OlderNewer