Skip to content
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

[Fix] Fix the log error #766

Merged
merged 3 commits into from
Aug 10, 2021
Merged

Conversation

Junjun2016
Copy link
Collaborator

@Junjun2016 Junjun2016 commented Aug 9, 2021

Motivation

If the priority of EvalHook is higher than IterTimerHook, it will cause KeyError: 'data_time' (#758).
Since the time key will add to the output of log_buffer after IterTimeHook, the TextLoggerHook will print the time and data_time at the same time.

This PR is based on open-mmlab/mmcv#1252.

Modification

Set the priority of EvalHook to LOW.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repos?
No.

@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #766 (c72ee74) into master (6c26a7f) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #766   +/-   ##
=======================================
  Coverage   85.37%   85.37%           
=======================================
  Files         107      107           
  Lines        5847     5847           
  Branches      960      960           
=======================================
  Hits         4992     4992           
  Misses        673      673           
  Partials      182      182           
Flag Coverage Δ
unittests 85.36% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmseg/apis/train.py 25.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c26a7f...c72ee74. Read the comment docs.

@xvjiarui
Copy link
Collaborator

xvjiarui commented Aug 9, 2021

Fixed #758

@xvjiarui xvjiarui merged commit 9155d9e into open-mmlab:master Aug 10, 2021
bowenroom pushed a commit to bowenroom/mmsegmentation that referenced this pull request Feb 25, 2022
* set the priority of EvalHook to LOW

* add comment for priority change

* fix comment
aravind-h-v pushed a commit to aravind-h-v/mmsegmentation that referenced this pull request Mar 27, 2023
…#766)

* mps: alt. implementation for repeat_interleave

* style

* Bump mps version of PyTorch in the documentation.

* Apply suggestions from code review

Co-authored-by: Suraj Patil <surajp815@gmail.com>

* Simplify: do not check for device.

* style

* Fix repeat dimensions:

- The unconditional embeddings are always created from a single prompt.
- I was shadowing the batch_size var.

* Split long lines as suggested by Suraj.

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Suraj Patil <surajp815@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants