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

Providing pixel fragments #233

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Conversation

martinResearch
Copy link
Owner

No description provided.

@sourcery-ai
Copy link

sourcery-ai bot commented Aug 20, 2022

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 5.20%.

Quality metrics Before After Change
Complexity 5.11 ⭐ 4.11 ⭐ -1.00 👍
Method Length 104.50 🙂 93.59 🙂 -10.91 👍
Working memory 14.89 😞 13.11 😞 -1.78 👍
Quality 52.44% 🙂 57.64% 🙂 5.20% 👍
Other metrics Before After Change
Lines 1362 1358 -4
Changed files Quality Before Quality After Quality Change
deodr/differentiable_renderer.py 50.49% 🙂 55.94% 🙂 5.45% 👍
tests/test_depth_image_hand_fitting.py 88.11% ⭐ 88.11% ⭐ 0.00%
tests/test_rgb_image_hand_fitting.py 87.70% ⭐ 87.70% ⭐ 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
deodr/differentiable_renderer.py Scene3D.render_deferred 16 🙂 663 ⛔ 27 ⛔ 19.96% ⛔ Try splitting into smaller methods. Extract out complex expressions
deodr/differentiable_renderer.py Scene3D._generate_scene_2d 6 ⭐ 395 ⛔ 20 ⛔ 32.91% 😞 Try splitting into smaller methods. Extract out complex expressions
deodr/differentiable_renderer.py Camera.project_points 8 ⭐ 218 ⛔ 23 ⛔ 35.50% 😞 Try splitting into smaller methods. Extract out complex expressions
deodr/differentiable_renderer.py Camera.project_points_backward 3 ⭐ 295 ⛔ 22 ⛔ 37.03% 😞 Try splitting into smaller methods. Extract out complex expressions
deodr/differentiable_renderer.py Scene2D.__init__ 0 ⭐ 231 ⛔ 25 ⛔ 41.84% 😞 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

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.

1 participant