Spaces:
Running
on
Zero
Running
on
Zero
Update trellis/pipelines/trellis_image_to_3d.py
Browse files
trellis/pipelines/trellis_image_to_3d.py
CHANGED
@@ -253,8 +253,7 @@ class TrellisImageTo3DPipeline(Pipeline):
|
|
253 |
bbox = np.min(bbox[:, 1]), np.min(bbox[:, 0]), np.max(bbox[:, 1]), np.max(bbox[:, 0])
|
254 |
center = [(bbox[0] + bbox[2]) / 2, (bbox[1] + bbox[3]) / 2]
|
255 |
size = max(bbox[2] - bbox[0], bbox[3] - bbox[1])
|
256 |
-
size = int(size * 1.
|
257 |
-
# size = int(size * 1.1)
|
258 |
height, width = alpha.shape
|
259 |
if not recenter:
|
260 |
center = [width / 2, height / 2]
|
|
|
253 |
bbox = np.min(bbox[:, 1]), np.min(bbox[:, 0]), np.max(bbox[:, 1]), np.max(bbox[:, 0])
|
254 |
center = [(bbox[0] + bbox[2]) / 2, (bbox[1] + bbox[3]) / 2]
|
255 |
size = max(bbox[2] - bbox[0], bbox[3] - bbox[1])
|
256 |
+
size = int(size * 1.1)
|
|
|
257 |
height, width = alpha.shape
|
258 |
if not recenter:
|
259 |
center = [width / 2, height / 2]
|