-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 the background color bug when exporting video with the "random" background option #2831
Conversation
Training with random background is a feature not a bug. |
Hi! This modification won’t affect training, the background is still randomly picked. It only changes the background color when exporting video. |
I see. But the code here is quite confusing. Could you add some comments explaining the effect of setting this to a magic value? |
Oh, the value is just the same background color as the one for viser. The training background logic is defined seperately, so this value would only work when it is not in training. |
Yeah, I know. That's what I suggested for adding those comments above the line of change. |
Comments added. Thank you for your suggestion. |
This works as a patch, but what might be a more permanent fix is to propagate the background color set in viser into render |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes #2815 , but might want to revisit how background is handled in the render crop_data
so that users can define a background even if the 'crop scene' option is not selected
Set default bg to viser color in gs to fix strange bg color in rendering.