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 python3 | |
| import itertools | |
| import math | |
| from typing import Any, Dict, List, NamedTuple, Optional, Union # noqa | |
| from classy_vision.hooks import ExponentialMovingAverageModelHook | |
| from classy_vision.models import ClassyModel | |
| from classy_vision.tasks import ClassificationTask, register_task | |
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 python3 | |
| from typing import Any, Dict | |
| from classy_vision.tasks import FineTuningTask, register_task | |
| from .classification_ema_task import ClassificationEMATask | |
| @register_task("fine_tuning_ema_task") |
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 python3 | |
| import copy | |
| import enum | |
| import logging | |
| import multiprocessing as mp | |
| import time | |
| from typing import Any, Callable, Dict, List, NamedTuple, Optional, Union # noqa | |
| import torch |
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 python3 | |
| import copy | |
| import logging | |
| import multiprocessing as mp | |
| import time | |
| from typing import Any, Callable, Dict, List, NamedTuple, Optional, Union # noqa | |
| import torch | |
| import torch.distributed |
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
| I0310 18:40:34 16874 auto_x3d_search.py:818] Derived autox3d signature: {'stage0_group0_pathway0_block0': {'op_type': 'ir_k_t3s3_se', 'expansion': 3 | |
| .75, 'channel': 40}, 'stage0_group1_pathway0_block0': {'op_type': 'ir_k_t5s5_se', 'expansion': 3.75, 'channel': 40}, 'stage0_group1_pathway0_block1': { | |
| 'op_type': 'ir_k_t5s5_se', 'expansion': 3.75, 'channel': 40}, 'stage1_group0_pathway0_block0': {'op_type': 'ir_k_t1s3_se', 'expansion': 4.5, 'channel': | |
| 88}, 'stage1_group1_pathway0_block0': {'op_type': 'ir_k_t3s5_se', 'expansion': 6.0, 'channel': 88}, 'stage1_group1_pathway0_block1': {'op_type': | |
| 'ir_k_t3s5_se', 'expansion': 6.0, 'channel': 88}, 'stage1_group1_pathway0_block2': {'op_type': 'ir_k_t3s5_se', 'expansion': 6.0, 'channel': 88}, | |
| 'stage1_group1_pathway0_block3': {'op_type': 'ir_k_t3s5_se', 'expansion': 6.0, 'channel': 88}, 'stage2_group0_pathway0_block0': {'op_type': | |
| 'ir_k_t1s5_se', 'expansion': 5.25, 'channel': 128}, 'stage2_group1_pathway0_block0': {'op_type': 'ir_k_t1s3_se', 'expansion': 3.75, 'cha |
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 python3 | |
| # (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | |
| import logging | |
| import os | |
| from functools import partial | |
| from multiprocessing.pool import ThreadPool | |
| from typing import Any, Callable, Dict, Optional | |
| import torch |
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 python3 | |
| import enum | |
| import math | |
| from typing import Dict, List | |
| import numpy as np | |
| import torch | |
| import torchvision.io as io |
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 python3 | |
| # (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | |
| import collections.abc | |
| import copy | |
| import gc | |
| import logging | |
| import math | |
| from collections import OrderedDict | |
| from functools import partial |
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 python3 | |
| # (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | |
| from pathlib import Path | |
| from classy_vision.dataset import build_dataset as oss_build_dataset | |
| from classy_vision.generic.registry_utils import import_all_modules | |
| def build_dataset(dataset_config): |
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 python3 | |
| # (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | |
| import os | |
| import unittest | |
| from fblearner.flow.projects.vision.classy_vision_workflows.classy_vision_arch_search.datasets import ( | |
| MiniKinetics200Dataset, | |
| build_dataset, | |
| ) |
NewerOlder