摘要:
# -*- coding: utf-8 -*- """ Create a subset of the ImageNet-1k dataset. Ref: Hou, Saihui, et al. "Learning a Unified Classifier Incrementally via Reba 阅读全文
摘要:
下面给出的代码,允许用户使用LMDataset对象,加快数据集的访问速度。它预先读取传入dataset中的数据,并存储于LMDB数据库中。在ImageNet的测试表明,它能够加快图像读取速度4.25倍。 使用代码如下: from LMDataset import LMDataset from tor 阅读全文
摘要:
# -*- coding: utf-8 -*- """" This document is a simple Demo for DDP Image Classification """ from typing import Callable from argparse import Argument 阅读全文
摘要:
创建idleGPUs.py,内容如下: #!/usr/bin/env python # -*- coding: utf-8 -*- from os import popen from typing import List def query_idle_gpus(threshold: int = 2) 阅读全文