Comments (6)
Hi -- can you share some of your rendered images?
Note that we do gamma-correct our mitsuba-rendered images (also w/ proper global scaling to reasonable brightness) and save as uint8 png images. Then we will use these png images (no inverse gamma correction) in the first stage; in the second stage, we will first inverse-gamma-correct the png images, as rendering equation is linear.
from iron.
Hello!
Without gamma-correction mitsuba-rendered images looks like under-exposed:
For the first stage I used this code for reading *.exr files, which performs gamma-correction to reasonable brightness:
Lines 69 to 78 in 5993e35
Is it flag --inv_gamma_gt
supposed to be set during the second stage to perform inverse gamma-correction of the input images? I'm asking, because train_scene.sh script doesn't set this flag for the second stage.
from iron.
Hi -- the exr images need to be scaled (same scaling factor applied to all your training and test images) and then gamma-corrected to have well-exposed uint8 png images. I can share some example script to achieve this exr to png conversion later.
And yes, --inv_gamma_gt
would be needed in the second stage for the synthetic data. (the setting in train_scene.sh
was meant for real-world images; somehow I found that without this --inv_gamma_gt
, the method recovers better specularity for real-world captures sometimes).
from iron.
Hello!
Thank you for the reply!
Could you suggest any reasonable scaling factor to apply for all exr images before gamma-correction (with grade 1/2.2)?
from iron.
Let's say you put all your training and test images into a tensor of shape [N, H, W, 3]; then a good heuristic might be to scale the 98-percentile (might worth trying other percentiles) of the flattened tensor to be 1; then you clip the scaled tensor to the range (0,1), and perform gamma correction, followed by saving as uint8 png.
from iron.
Hi!
I experimented a bit with the different percentiles for normalization and gamma-correction setups for the second stage. The best result I got is with 95-percentile and disabled --gamma_pred and enabled --inv_gamma_gt flags. Unfortunately, this result is still doesn't contain small details and sharp edges like that presented in the paper.
Do you have any suggestion how to tune configs/setups to get the shape more accurate?
Thanks!
from iron.
Related Issues (20)
- Exporting materials HOT 3
- Test data HOT 2
- About photometric image HOT 4
- About BRDF HOT 4
- result mesh is not good HOT 3
- How to train/test on my own dataset HOT 30
- Exporting materials HOT 1
- Cuda out of memory HOT 6
- About GGX Renderer HOT 1
- Poor results for metal materials HOT 1
- importing model into blender HOT 1
- The question about the edge gradient problem existed in IDR HOT 2
- Poor results in Superman HOT 2
- Is this a bug in the GGX renderer?
- Parameters to improve volumetric fitting for complex object ?
- Render synthetic data: The property "alpha" has the wrong type
- I use the default config, but the reault is too bad HOT 1
- Learning Specular and Roughness fails and produces a strange phenomenon HOT 5
- About preprocessing pipeline HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iron.