This file contains hidden or 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
""" | |
You need gpustat for this to work. | |
Optionally install pandas / seaborn / matplotlib if you want plotting features. | |
```python | |
from gpu_monitor import GPUUtilizationManager | |
gpu_monitor = GPUUtilizationManager(gpu_ids=[0,1], interval=0.1) | |
with gpu_monitor.monitor(): | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 math | |
import os | |
import sys | |
import numpy as np | |
from PIL import Image | |
########################################################################################### | |
# script to generate moving mnist video dataset (frame by frame) as described in |