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 os | |
import click | |
from ocrd_utils import MIMETYPE_PAGE | |
from ocrd_models.ocrd_mets import OcrdMets | |
from ocrd_models.ocrd_page import to_xml | |
from ocrd_modelfactory import page_from_file | |
@click.command() | |
@click.option('-m', '--mets-file', default="mets.xml", help="path to METS of workspace") |
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
#!/usr/bin/env bash | |
fname=$1 | |
# if the log file does not exist yet, record it (stop by pressing ctrl+c) | |
if ! test -f $fname; then | |
nvidia-smi -f $fname -l 1 --format=csv --query-gpu=timestamp,memory.total,memory.used,utilization.gpu,utilization.memory & | |
bg=$! |
OlderNewer