Skip to content

Commit

Permalink
Merge pull request #3 from Clarifai/796-3
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
wemoveon2 authored Oct 1, 2024
2 parents c78b72a + efb5851 commit a5a9fe3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mmcls/apis/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import torch
import torch.distributed as dist
from mmcv.image import tensor2imgs
from mmengine.runner import get_dist_info
from mmengine.dist.utils import get_dist_info


def single_gpu_test(model,
Expand Down
2 changes: 1 addition & 1 deletion mmcls/datasets/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
import torch
from mmcv.parallel import collate
from mmengine.runner import get_dist_info
from mmengine.dist.utils import get_dist_info
from mmcv.utils import Registry, build_from_cfg, digit_version
from torch.utils.data import DataLoader

Expand Down
2 changes: 1 addition & 1 deletion mmcls/datasets/cifar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np
import torch.distributed as dist
from mmengine.runner import get_dist_info
from mmengine.dist.utils import get_dist_info

from .base_dataset import BaseDataset
from .builder import DATASETS
Expand Down
2 changes: 1 addition & 1 deletion mmcls/datasets/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np
import torch
import torch.distributed as dist
from mmengine.runner import get_dist_info, master_only
from mmengine.dist.utils import get_dist_info, master_only

from .base_dataset import BaseDataset
from .builder import DATASETS
Expand Down
2 changes: 1 addition & 1 deletion mmcls/datasets/samplers/repeat_aug.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import math

import torch
from mmengine.runner import get_dist_info
from mmengine.dist.utils import get_dist_info
from torch.utils.data import Sampler

from mmcls.core.utils import sync_random_seed
Expand Down
2 changes: 1 addition & 1 deletion tools/kfold-cross-valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import mmcv
import torch
from mmengine.config import Config, DictAction
from mmengine.runner import get_dist_info, init_dist
from mmengine.dist.utils import get_dist_info, init_dist

from mmcls import __version__
from mmcls.apis import init_random_seed, set_random_seed, train_model
Expand Down
2 changes: 1 addition & 1 deletion tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import torch
import torch.distributed as dist
from mmengine.config import Config, DictAction
from mmengine.runner import get_dist_info, init_dist
from mmengine.dist.utils import get_dist_info, init_dist

from mmcls import __version__
from mmcls.apis import init_random_seed, set_random_seed, train_model
Expand Down

0 comments on commit a5a9fe3

Please sign in to comment.