Skip to content

[Feature] Add ceph and petrel support for LoadMultiViewImageFromFiles #1651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: dev-1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

### 💎 Stable version

**v1.0.0rc5** was released in 11/10/2022
**v1.0.0rc6** was released in 2/12/2022

### 🌟 Preview of 1.1.x version

Expand Down Expand Up @@ -96,7 +96,7 @@ This project is released under the [Apache 2.0 license](LICENSE).

## Changelog

v1.0.0rc5 was released in 11/10/2022.
**v1.0.0rc6** was released in 2/12/2022.

Please refer to [changelog.md](docs/en/changelog.md) for details and release history.

Expand Down
4 changes: 2 additions & 2 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
[![codecov](https://codecov.io/gh/open-mmlab/mmdetection3d/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdetection3d)
[![license](https://img.shields.io/github/license/open-mmlab/mmdetection3d.svg)](https://github.com/open-mmlab/mmdetection3d/blob/master/LICENSE)

**新闻**: 我们发布了版本 v1.0.0rc5.
**新闻**: 我们发布了版本 v1.0.0rc6.

### 💎 稳定版本

最新的 **1.0.0rc5** 版本已经在 2022.10.11 发布。
最新的 **1.0.0rc6** 版本已经在 2022.12.2 发布。

### 🌟 1.1.x 预览版本

Expand Down
22 changes: 22 additions & 0 deletions docs/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
## Changelog

### v1.0.0rc6 (2/12/2022)

#### New Features

- Add `Projects/` folder and the first example project (#2082)

#### Improvements

- Update Waymo converter to save storage space (#1759)
- Update model link and performance of CenterPoint (#1916)

#### Bug Fixes

- Fix GPU memory occupancy problem in PointRCNN (#1928)
- Fix sampling bug in `IoUNegPiecewiseSampler` (#2018)

#### Contributors

A total of 6 developers contributed to this release.

@oyel, @zzj403, @VVsssssk, @Tai-Wang, @tpoisonooo, @JingweiZhang12, @ZCMax

### v1.0.0rc5 (11/10/2022)

#### New Features
Expand Down
1 change: 1 addition & 0 deletions docs/en/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ We list some potential troubles encountered by users and developers, along with
| MMDetection3D version | MMDetection version | MMSegmentation version | MMCV version |
| :-------------------: | :----------------------: | :---------------------: | :-------------------------: |
| master | mmdet>=2.24.0, \<=3.0.0 | mmseg>=0.20.0, \<=1.0.0 | mmcv-full>=1.5.2, \<=1.7.0 |
| v1.0.0rc6 | mmdet>=2.24.0, \<=3.0.0 | mmseg>=0.20.0, \<=1.0.0 | mmcv-full>=1.5.2, \<=1.7.0 |
| v1.0.0rc5 | mmdet>=2.24.0, \<=3.0.0 | mmseg>=0.20.0, \<=1.0.0 | mmcv-full>=1.5.2, \<=1.7.0 |
| v1.0.0rc4 | mmdet>=2.24.0, \<=3.0.0 | mmseg>=0.20.0, \<=1.0.0 | mmcv-full>=1.5.2, \<=1.7.0 |
| v1.0.0rc3 | mmdet>=2.24.0, \<=3.0.0 | mmseg>=0.20.0, \<=1.0.0 | mmcv-full>=1.4.8, \<=1.6.0 |
Expand Down
14 changes: 11 additions & 3 deletions mmdet3d/datasets/pipelines/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ class LoadMultiViewImageFromFiles(object):
Defaults to 'unchanged'.
"""

def __init__(self, to_float32=False, color_type='unchanged'):
def __init__(self,
to_float32=False,
color_type='unchanged',
file_client_args=dict(backend='disk')):
self.to_float32 = to_float32
self.color_type = color_type
self.file_client_args = file_client_args.copy()

def __call__(self, results):
"""Call function to load multi-view image from files.
Expand All @@ -44,8 +48,12 @@ def __call__(self, results):
"""
filename = results['img_filename']
# img is of shape (h, w, c, num_views)
img = np.stack(
[mmcv.imread(name, self.color_type) for name in filename], axis=-1)
img = np.stack([
mmcv.imread(
name, self.color_type, file_client_args=self.file_client_args)
for name in filename
],
axis=-1)
if self.to_float32:
img = img.astype(np.float32)
results['filename'] = filename
Expand Down
2 changes: 1 addition & 1 deletion mmdet3d/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Open-MMLab. All rights reserved.

__version__ = '1.0.0rc5'
__version__ = '1.0.0rc6'
short_version = __version__


Expand Down