Skip to content

Instantly share code, notes, and snippets.

View supernlogn's full-sized avatar

Ioannis Athanasiadis supernlogn

View GitHub Profile
@supernlogn
supernlogn / nvidia-power-log.py
Last active November 2, 2023 07:13
An example of logging nvidia gpu power consumption using python.
""" Descr:
A how-to log power consumption of nvidia gpus in a system using python.
After obtaining results, user can plot them using matplotlib.
author:
Ioannis Athanasiadis (supernlogn)
"""
import numpy as np
from matplotlib import pyplot as plt
import subprocess
import time, datetime
@supernlogn
supernlogn / download_classes_open_images.py
Last active March 2, 2018 13:39
Downloads and creates annotation for images from openImages dataset containing certain classes
"""
This file helps reasearchers download and process the openImages dataset.
Author: Ioannis Athanasiadis(ath.ioannis94@gmail.com)
"""
import urllib2
import csv
import os
import shutil
from subprocess import call
import cv2
@supernlogn
supernlogn / squeezeDet_shape_calculator.py
Last active May 17, 2018 10:30
computes the dimensions of the final squeezeDet layer provided the model configuration
# MIT License
#
# Copyright (c) 2017 Ioannis Athanasiadis
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: