Commit
·
b913122
1
Parent(s):
dc9d3c9
Add color statistics logging in generate3d function
Browse files- inference.py +3 -0
inference.py
CHANGED
@@ -100,4 +100,7 @@ def generate3d(model, rgb, ccm, device):
|
|
100 |
end_time = time.time()
|
101 |
elapsed_time = end_time - start_time
|
102 |
print(f"uv takes {elapsed_time}s")
|
|
|
|
|
|
|
103 |
return mesh_path_glb+".obj"
|
|
|
100 |
end_time = time.time()
|
101 |
elapsed_time = end_time - start_time
|
102 |
print(f"uv takes {elapsed_time}s")
|
103 |
+
|
104 |
+
print("Raw color min/max/mean:", colors.min(), colors.max(), colors.mean())
|
105 |
+
print("Scaled color min/max/mean:", colors.min(), colors.max(), colors.mean())
|
106 |
return mesh_path_glb+".obj"
|