Skip to content

Instantly share code, notes, and snippets.

View Karol-G's full-sized avatar

Karol Gotkowski Karol-G

  • German Cancer Research Center (DKFZ)
  • Heidelberg, Germany
View GitHub Profile
@Karol-G
Karol-G / README.md
Last active November 11, 2025 10:14
nvidia-htop: nvidia-smi with a pid username mapping

🧠 nvidia-htop

nvidia-htop is a lightweight Bash utility that provides an htop-style overview of GPU processes, showing the GPU index, PID, username, and command name for each active NVIDIA process — followed by the standard nvidia-smi summary.

It’s designed for users without root access and integrates cleanly into your shell environment.


🚀 Features

from nilearn import plotting
import numpy as np
import nibabel as nib
import os
import matplotlib.pyplot as plt
from pathlib import Path
import scipy
class Preprocessor():
@Karol-G
Karol-G / main.py
Last active May 30, 2020 07:48
Grad-Cam with Pythia
import sys
sys.path.append('pythia')
sys.path.append('vqa-maskrcnn-benchmark')
import cv2
import torch
import gc
import pythia_grad_cam as pgc
from torch.utils.data import DataLoader
import time