empty conn; clean_pcd; 10 cores
Browse files- handcrafted_solution.py +1 -1
- script.py +1 -1
handcrafted_solution.py
CHANGED
@@ -829,7 +829,7 @@ def predict(entry, visualize=False, prune_dist_thr=600, depth_scale=2.5, ) -> Tu
|
|
829 |
XYZ = np.stack([p.xyz for p in points3D.values()])
|
830 |
rgb = np.stack([p.rgb for p in points3D.values()])
|
831 |
lowest_z = min(XYZ[:,2])
|
832 |
-
|
833 |
del points3D
|
834 |
vert_edge_per_image = {}
|
835 |
for i, (ade, gest, depth, K, R, t) in enumerate(zip(
|
|
|
829 |
XYZ = np.stack([p.xyz for p in points3D.values()])
|
830 |
rgb = np.stack([p.rgb for p in points3D.values()])
|
831 |
lowest_z = min(XYZ[:,2])
|
832 |
+
XYZ, rgb, lowest_z = clean_PCD(XYZ, rgb)
|
833 |
del points3D
|
834 |
vert_edge_per_image = {}
|
835 |
for i, (ade, gest, depth, K, R, t) in enumerate(zip(
|
script.py
CHANGED
@@ -146,7 +146,7 @@ if __name__ == "__main__":
|
|
146 |
print('------------ Now you can do your solution ---------------')
|
147 |
solution = []
|
148 |
from concurrent.futures import ProcessPoolExecutor
|
149 |
-
with ProcessPoolExecutor(max_workers=
|
150 |
results = []
|
151 |
for i, sample in enumerate(tqdm(dataset)):
|
152 |
results.append(pool.submit(predict, sample, visualize=False))
|
|
|
146 |
print('------------ Now you can do your solution ---------------')
|
147 |
solution = []
|
148 |
from concurrent.futures import ProcessPoolExecutor
|
149 |
+
with ProcessPoolExecutor(max_workers=10) as pool:
|
150 |
results = []
|
151 |
for i, sample in enumerate(tqdm(dataset)):
|
152 |
results.append(pool.submit(predict, sample, visualize=False))
|