mirror of
https://github.com/open-mmlab/mmselfsup.git
synced 2025-06-03 14:59:38 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
db861f3048 | ||
|
c77954bb90 |
4
.github/ISSUE_TEMPLATE/1-bug-report.yml
vendored
4
.github/ISSUE_TEMPLATE/1-bug-report.yml
vendored
@ -19,8 +19,8 @@ body:
|
|||||||
label: Branch
|
label: Branch
|
||||||
description: Which branch/version are you using?
|
description: Which branch/version are you using?
|
||||||
options:
|
options:
|
||||||
- master branch (0.x version, such as `v0.10.0`, or `dev` branch)
|
- main branch (1.x version)
|
||||||
- 1.x branch (1.x version, such as `v1.0.0rc2`, or `dev-1.x` branch)
|
- 0.x branch
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ We recommend users to follow our best practices to install MMSelfSup. However, t
|
|||||||
```shell
|
```shell
|
||||||
pip install -U openmim
|
pip install -U openmim
|
||||||
mim install mmengine
|
mim install mmengine
|
||||||
mim install 'mmcv>=2.0.0rc1'
|
mim install 'mmcv>=2.0.0'
|
||||||
```
|
```
|
||||||
|
|
||||||
**Step 1.** Install MMSelfSup.
|
**Step 1.** Install MMSelfSup.
|
||||||
@ -79,25 +79,18 @@ In this case, install mmselfsup from source:
|
|||||||
```shell
|
```shell
|
||||||
git clone https://github.com/open-mmlab/mmselfsup.git
|
git clone https://github.com/open-mmlab/mmselfsup.git
|
||||||
cd mmselfsup
|
cd mmselfsup
|
||||||
git checkout 1.x
|
|
||||||
pip install -v -e .
|
pip install -v -e .
|
||||||
# "-v" means verbose, or more output
|
# "-v" means verbose, or more output
|
||||||
# "-e" means installing a project in editable mode,
|
# "-e" means installing a project in editable mode,
|
||||||
# thus any local modifications made to the code will take effect without reinstallation.
|
# thus any local modifications made to the code will take effect without reinstallation.
|
||||||
```
|
```
|
||||||
|
|
||||||
Optionally, if you want to [contribute](https://github.com/open-mmlab/mmselfsup/blob/main/docs/en/notes/contribution_guide.md) to MMSelfSup or experience experimental functions, please checkout to the `dev-1.x` branch:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git checkout dev-1.x
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Install as a Python package
|
#### Install as a Python package
|
||||||
|
|
||||||
Just install with pip.
|
Just install with pip.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pip install 'mmselfsup>=1.0.0rc0'
|
pip install 'mmselfsup>=1.0.0'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Verify the installation
|
### Verify the installation
|
||||||
|
@ -62,7 +62,7 @@ conda install pytorch torchvision cpuonly -c pytorch
|
|||||||
```shell
|
```shell
|
||||||
pip install -U openmim
|
pip install -U openmim
|
||||||
mim install mmengine
|
mim install mmengine
|
||||||
mim install 'mmcv>=2.0.0rc1'
|
mim install 'mmcv>=2.0.0'
|
||||||
```
|
```
|
||||||
|
|
||||||
**步骤 1.** 安装 MMSelfSup。
|
**步骤 1.** 安装 MMSelfSup。
|
||||||
@ -79,25 +79,18 @@ mim install 'mmcv>=2.0.0rc1'
|
|||||||
```shell
|
```shell
|
||||||
git clone https://github.com/open-mmlab/mmselfsup.git
|
git clone https://github.com/open-mmlab/mmselfsup.git
|
||||||
cd mmselfsup
|
cd mmselfsup
|
||||||
git checkout 1.x
|
|
||||||
pip install -v -e .
|
pip install -v -e .
|
||||||
# "-v" 表示详细,或更多输出
|
# "-v" 表示详细,或更多输出
|
||||||
# "-e" 表示以可编辑模式安装项目,
|
# "-e" 表示以可编辑模式安装项目,
|
||||||
# 因此,对代码所做的任何本地修改都将生效,无需重新安装。
|
# 因此,对代码所做的任何本地修改都将生效,无需重新安装。
|
||||||
```
|
```
|
||||||
|
|
||||||
或者,如果您想为 MMSelfSup 做出[贡献](https://github.com/open-mmlab/mmselfsup/blob/main/docs/zh_cn/notes/contribution_guides.md)或体验其正在实验中的功能,请查看 `dev-1.x` 分支:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git checkout dev-1.x
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 作为 Python 包安装
|
#### 作为 Python 包安装
|
||||||
|
|
||||||
直接用 pip 安装:
|
直接用 pip 安装:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pip install 'mmselfsup>=1.0.0rc0'
|
pip install 'mmselfsup>=1.0.0'
|
||||||
```
|
```
|
||||||
|
|
||||||
### 验证安装
|
### 验证安装
|
||||||
|
@ -55,15 +55,14 @@ __all__ = [
|
|||||||
# Registries For Runner and the related
|
# Registries For Runner and the related
|
||||||
# manage all kinds of runners like `EpochBasedRunner` and `IterBasedRunner`
|
# manage all kinds of runners like `EpochBasedRunner` and `IterBasedRunner`
|
||||||
RUNNERS = Registry(
|
RUNNERS = Registry(
|
||||||
'runner', parent=MMENGINE_RUNNERS, locations=['mmselfsup.engine.runner'])
|
'runner', parent=MMENGINE_RUNNERS, locations=['mmselfsup.engine'])
|
||||||
# manage runner constructors that define how to initialize runners
|
# manage runner constructors that define how to initialize runners
|
||||||
RUNNER_CONSTRUCTORS = Registry(
|
RUNNER_CONSTRUCTORS = Registry(
|
||||||
'runner constructor',
|
'runner constructor',
|
||||||
parent=MMENGINE_RUNNER_CONSTRUCTORS,
|
parent=MMENGINE_RUNNER_CONSTRUCTORS,
|
||||||
locations=['mmselfsup.engine.runner'])
|
locations=['mmselfsup.engine'])
|
||||||
# manage all kinds of loops like `EpochBasedTrainLoop`
|
# manage all kinds of loops like `EpochBasedTrainLoop`
|
||||||
LOOPS = Registry(
|
LOOPS = Registry('loop', parent=MMENGINE_LOOPS, locations=['mmselfsup.engine'])
|
||||||
'loop', parent=MMENGINE_LOOPS, locations=['mmselfsup.engine.runner'])
|
|
||||||
# manage all kinds of hooks like `CheckpointHook`
|
# manage all kinds of hooks like `CheckpointHook`
|
||||||
HOOKS = Registry(
|
HOOKS = Registry(
|
||||||
'hook', parent=MMENGINE_HOOKS, locations=['mmselfsup.engine.hooks'])
|
'hook', parent=MMENGINE_HOOKS, locations=['mmselfsup.engine.hooks'])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
asynctest
|
asynctest
|
||||||
codecov
|
coverage
|
||||||
flake8
|
flake8
|
||||||
interrogate
|
interrogate
|
||||||
isort==5.10.1
|
isort==5.10.1
|
||||||
|
@ -9,7 +9,7 @@ from mmselfsup.models import BEiT
|
|||||||
from mmselfsup.structures import SelfSupDataSample
|
from mmselfsup.structures import SelfSupDataSample
|
||||||
|
|
||||||
data_preprocessor = dict(
|
data_preprocessor = dict(
|
||||||
type='TwoNormDataPreprocessor',
|
type='mmselfsup.TwoNormDataPreprocessor',
|
||||||
mean=(123.675, 116.28, 103.53),
|
mean=(123.675, 116.28, 103.53),
|
||||||
std=(58.395, 57.12, 57.375),
|
std=(58.395, 57.12, 57.375),
|
||||||
second_mean=(-20.4, -20.4, -20.4),
|
second_mean=(-20.4, -20.4, -20.4),
|
||||||
|
@ -9,7 +9,7 @@ from mmselfsup.models import BEiT
|
|||||||
from mmselfsup.structures import SelfSupDataSample
|
from mmselfsup.structures import SelfSupDataSample
|
||||||
|
|
||||||
data_preprocessor = dict(
|
data_preprocessor = dict(
|
||||||
type='TwoNormDataPreprocessor',
|
type='mmselfsup.TwoNormDataPreprocessor',
|
||||||
mean=(123.675, 116.28, 103.53),
|
mean=(123.675, 116.28, 103.53),
|
||||||
std=(58.395, 57.12, 57.375),
|
std=(58.395, 57.12, 57.375),
|
||||||
second_mean=(127.5, 127.5, 127.5),
|
second_mean=(127.5, 127.5, 127.5),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user