CARVIEW |
Select Language
HTTP/2 301
date: Wed, 23 Jul 2025 07:42:07 GMT
content-type: text/html; charset=utf-8
content-length: 0
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
location: https://github.com/open-mmlab/mmagic/releases/tag/v1.0.0rc6
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
set-cookie: _gh_sess=F1ImuQOaQMiZ2zseqJgW5DNyvuDcaJK0x%2Fq2NvlCtPFI9%2F%2BmC6jvOeXFlrVS4SjaiXZJSYLXHXP1W3Rq1mKLQoKiKfM2gDqroo4%2Bn%2BMX%2Bep8Y9O55MSQ%2FcIpztkDrRiPWZzuhsCPP2QjPcrElwcxwTB6kKD5Pe4hWkyzDxRCo4QzggpREUVwwpNY%2BRn1ogj6LQS60w72yw4f76qNsekdmZNBkzZBaJQW9eUDRtfHgpn%2BIi5IrTGKThMt3G3Otod7K4XWs5p0rpvmwyLRBQdkvA%3D%3D--%2FiMtv%2FhD3Z1JPkO6--aOHV%2Bj%2BOeRPhUqXMbVECpA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1896697695.1753256526; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 07:42:06 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 07:42:06 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A210:167F3A:666F17:808981:6880924E
HTTP/2 200
date: Wed, 23 Jul 2025 07:42:07 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"43d0cf339997051bbb6c6c451b861f97"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
x-github-request-id: A210:167F3A:666F5F:8089D2:6880924E
Release MMEditing v1.0.0rc6 Release · open-mmlab/mmagic · GitHub
Loading
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
MMEditing v1.0.0rc6 Release
Compare
216f7d6
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Highlights
We are excited to announce the release of MMEditing 1.0.0rc6. This release supports 50+ models, 222+ configs and 209+ checkpoints in MMGeneration and MMEditing. We highlight the following new features
- Support Gradio gui of Inpainting inference.
- Support Colorization, Translationin and GAN models inference.
Backwards Incompatible changes
GenValLoop
andMultiValLoop
has been merged toEditValLoop
,GenTestLoop
andMultiTestLoop
has been merged toEditTestLoop
. Use case:
Case 1: metrics on a single dataset
>>> # add the following lines in your config
>>> # 1. use `EditValLoop` instead of `ValLoop` in MMEngine
>>> val_cfg = dict(type='EditValLoop')
>>> # 2. specific EditEvaluator instead of Evaluator in MMEngine
>>> val_evaluator = dict(
>>> type='EditEvaluator',
>>> metrics=[
>>> dict(type='PSNR', crop_border=2, prefix='Set5'),
>>> dict(type='SSIM', crop_border=2, prefix='Set5'),
>>> ])
>>> # 3. define dataloader
>>> val_dataloader = dict(...)
Case 2: different metrics on different datasets
>>> # add the following lines in your config
>>> # 1. use `EditValLoop` instead of `ValLoop` in MMEngine
>>> val_cfg = dict(type='EditValLoop')
>>> # 2. specific a list EditEvaluator
>>> # do not forget to add prefix for each metric group
>>> div2k_evaluator = dict(
>>> type='EditEvaluator',
>>> metrics=dict(type='SSIM', crop_border=2, prefix='DIV2K'))
>>> set5_evaluator = dict(
>>> type='EditEvaluator',
>>> metrics=[
>>> dict(type='PSNR', crop_border=2, prefix='Set5'),
>>> dict(type='SSIM', crop_border=2, prefix='Set5'),
>>> ])
>>> # define evaluator config
>>> val_evaluator = [div2k_evaluator, set5_evaluator]
>>> # 3. specific a list dataloader for each metric groups
>>> div2k_dataloader = dict(...)
>>> set5_dataloader = dict(...)
>>> # define dataloader config
>>> val_dataloader = [div2k_dataloader, set5_dataloader]
- Support
stack
andsplit
forEditDataSample
, Use case:
# Example for `split`
gen_sample = EditDataSample()
gen_sample.fake_img = outputs # tensor
gen_sample.noise = noise # tensor
gen_sample.sample_kwargs = deepcopy(sample_kwargs) # dict
gen_sample.sample_model = sample_model # string
# set allow_nonseq_value as True to copy non-sequential data (sample_kwargs and sample_model for this example)
batch_sample_list = gen_sample.split(allow_nonseq_value=True)
# Example for `stack`
data_sample1 = EditDataSample()
data_sample1.set_gt_label(1)
data_sample1.set_tensor_data({'img': torch.randn(3, 4, 5)})
data_sample1.set_data({'mode': 'a'})
data_sample1.set_metainfo({
'channel_order': 'rgb',
'color_flag': 'color'
})
data_sample2 = EditDataSample()
data_sample2.set_gt_label(2)
data_sample2.set_tensor_data({'img': torch.randn(3, 4, 5)})
data_sample2.set_data({'mode': 'b'})
data_sample2.set_metainfo({
'channel_order': 'rgb',
'color_flag': 'color'
})
data_sample_merged = EditDataSample.stack([data_sample1, data_sample2])
-
GenDataPreprocessor
has been merged intoEditDataPreprocessor
,- No changes are required other than changing the
type
field in config. - Users do not need to define
input_view
andoutput_view
since we will infer the shape of mean automatically. - In evaluation stage, all tensors will be converted to
BGR
(for three-channel images) and[0, 255]
.
- No changes are required other than changing the
-
PixelData
has been removed. -
For BaseGAN/CondGAN models, real images are passed from
data_samples.gt_img
instead ofinputs['img']
.
New Features & Improvements
- Refactor FileIO. #1572
- Refactor registry. #1621
- Refactor Random degradations. #1583
- Refactor DataSample, DataPreprocessor, Metric and Loop. #1656
- Use mmengine.basemodule instead of nn.module. #1491
- Refactor Main Page. #1609
- Support Gradio gui of Inpainting inference. #1601
- Support Colorization inferencer. #1588
- Support Translation models inferencer. #1650
- Support GAN models inferencer. #1653, #1659
- Print config tool. #1590
- Improve type hints. #1604
- Update Chinese documents of metrics and datasets. #1568, #1638
- Update Chinese documents of BigGAN and Disco-Diffusion. #1620
- Update Evaluation and README of Guided-Diffusion. #1547
Bug Fixes
- Fix the meaning of
momentum
in EMA. #1581 - Fix output dtype of RandomNoise. #1585
- Fix pytorch2onnx tool. #1629
- Fix API documents. #1641, #1642
- Fix loading RealESRGAN EMA weights. #1647
- Fix arg passing bug of dataset_converters scripts. #1648
Contributors
A total of 17 developers contributed to this release.
Thanks @plyfager, @LeoXing1996, @Z-Fran, @zengyh1900, @VongolaWu, @liuwenran, @austinmw, @dienachtderwelt, @liangzelong, @i-aki-y, @xiaomile, @Li-Qingyun, @vansin, @Luo-Yihang, @ydengbi, @ruoningYu, @triple-Mu
New Contributors
- @dienachtderwelt made their first contribution in #1578
- @i-aki-y made their first contribution in #1590
- @triple-Mu made their first contribution in #1618
- @Li-Qingyun made their first contribution in #1640
- @Luo-Yihang made their first contribution in #1648
- @ydengbi made their first contribution in #1557
Full Changelog: v1.0.0rc5...v1.0.0rc6
Assets 2
2 people reacted
You can’t perform that action at this time.