Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Swin-Transformer-Object-Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wanggh
Swin-Transformer-Object-Detection
Commits
3809e5e8
Unverified
Commit
3809e5e8
authored
4 years ago
by
Jerry Jiarui XU
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update API install docs (#2929)
parent
63e2d652
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
configs/lvis/README.md
+5
-0
5 additions, 0 deletions
configs/lvis/README.md
docs/install.md
+1
-1
1 addition, 1 deletion
docs/install.md
mmdet/datasets/lvis.py
+4
-4
4 additions, 4 deletions
mmdet/datasets/lvis.py
with
11 additions
and
6 deletions
.travis.yml
+
1
−
1
View file @
3809e5e8
...
...
@@ -36,7 +36,7 @@ install:
-
pip install Pillow==6.2.2
# remove this line when torchvision>=0.5
-
pip install torch==${TORCH} torchvision==${TORCHVISION}
-
pip install mmcv-nightly
-
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=
PythonAPI
"
-
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=
pycocotools
"
-
pip install -r requirements.txt
before_script
:
...
...
This diff is collapsed.
Click to expand it.
configs/lvis/README.md
+
5
−
0
View file @
3809e5e8
...
...
@@ -11,6 +11,11 @@
```
## Common Setting
*
Please follow
[
install guide
](
../../docs/install.md#install-mmdetection
)
to install open-mmlab forked cocoapi first.
*
Run following scripts to install our forked lvis-api.
```
pip install "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=lvis"
```
*
All experiments use oversample strategy
[
here
](
../../docs/tutorials/new_dataset.md#class-balanced-dataset
)
with oversample threshold
`1e-3`
.
*
The size of LVIS v0.5 is half of COCO, so schedule
`2x`
in LVIS is roughly the same iterations as
`1x`
in COCO.
...
...
This diff is collapsed.
Click to expand it.
docs/install.md
+
1
−
1
View file @
3809e5e8
...
...
@@ -58,7 +58,7 @@ for better compatibility with our repo.)
```
shell
pip
install
-r
requirements/build.txt
pip
install
"git+https://github.com/open-mmlab/cocoapi.git#subdirectory=
PythonAPI
"
pip
install
"git+https://github.com/open-mmlab/cocoapi.git#subdirectory=
pycocotools
"
pip
install
-v
-e
.
# or "python setup.py develop"
```
...
...
This diff is collapsed.
Click to expand it.
mmdet/datasets/lvis.py
+
4
−
4
View file @
3809e5e8
...
...
@@ -268,8 +268,8 @@ class LVISDataset(CocoDataset):
try
:
from
lvis
import
LVIS
except
ImportError
:
raise
ImportError
(
'
Please follow
install
.md to
'
'
install open-mmlab forked
cocoapi
first.
'
)
raise
ImportError
(
'
Please follow
config/lvis/README
.md to
'
'
install open-mmlab forked
lvis
first.
'
)
self
.
coco
=
LVIS
(
ann_file
)
assert
not
self
.
custom_classes
,
'
LVIS custom classes is not supported
'
self
.
cat_ids
=
self
.
coco
.
get_cat_ids
()
...
...
@@ -310,8 +310,8 @@ class LVISDataset(CocoDataset):
try
:
from
lvis
import
LVISResults
,
LVISEval
except
ImportError
:
raise
ImportError
(
'
Please follow
install
.md to
'
'
install open-mmlab forked
cocoapi
first.
'
)
raise
ImportError
(
'
Please follow
config/lvis/README
.md to
'
'
install open-mmlab forked
lvis
first.
'
)
assert
isinstance
(
results
,
list
),
'
results must be a list
'
assert
len
(
results
)
==
len
(
self
),
(
'
The length of results is not equal to the dataset len: {} != {}
'
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment