code
stringlengths
3
6.57k
complex(s)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
test_complex_ctor(self)
la.extend(ln)
la.extend(ls)
printwith("case", complex_case_repr(s)
complex(s)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
printwith("case", "real only", complex_case_repr(s)
complex(real=s)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
printwith("case", "imag only", complex_case_repr(s)
complex(imag=s)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
printwith("case", complex_case_repr(s1, s2)
complex(s1, s2)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
test_bigint(self)
range(10)
str(x)
range(1, 50, 7)
l.append(int(s[startx:startx + length])
print(x, y)
printwith('case', '%s, %s' % (x, y)
printwith('same', x+y)
printwith('same', x-y)
printwith('same', x*y)
printwith('same', x/y)
divmod(x, y)
printwithtype(t[0])
printwithtype(t[1])
l.remove(5.89)
l.remove(True)
range(1, 100, 7)
printwith('case', a, x, y)
printwith('same', pow(a, x, y)
test_file_mode(self)
modes.append(x + y + z)
modes.append(x + y + z)
printwith('case', m)
file(filename, m)
str(f)
s.find('at')
printwith('same', s[:atPos])
f.close()
printwith("same", 'throw')
runtests(test_builtin)
Migration(migrations.Migration)
models.DateTimeField(default=datetime.datetime(2021, 5, 31, 11, 45, 20, 503212)
models.CharField(max_length=200)
Describe(base.DescribeCommand)
Args(parser)
flags.API_VERSION_FLAG.AddToParser(parser)
Run(self, args)
main()
process_arguments()
o3c.Device("cuda:0")
tsdf.default_voxel_grid.make_default_tsdf_voxel_grid(device)
frame_dataset.load_depth_image_open3d(device)
frame_dataset.load_color_image_open3d(device)
data.camera.load_open3d_intrinsics_from_text_4x4_matrix_and_image(frame_dataset.get_intrinsics_path()
frame_dataset.get_depth_image_path()
o3d.core.Tensor(intrinsics_open3d_cpu.intrinsic_matrix, o3d.core.Dtype.Float32, device)
o3d.core.Tensor.eye(4, o3d.core.Dtype.Float32, device)
volume.integrate(depth_image, color_image, intrinsics_open3d_cuda, extrinsics_open3d_cuda, DeformNetParameters.depth_scale.value, 3.0)
volume.extract_surface_mesh(-1, 0)
to_legacy_triangle_mesh()
PyTorch3DRenderer((depth_image.rows, depth_image.columns)
np.array([0.0855289, -0.03289237, 2.79831315], dtype=np.float32)
scale_mesh_y(mesh: o3d.geometry.TriangleMesh, factor: float)
np.array(mesh.vertices)
o3d.geometry.TriangleMesh(o3d.cuda.pybind.utility.Vector3dVector(stretched_vertices)
os.path.join(PathParameters.output_directory.value, "berlin_y_stretch_sequence")
os.path.join(root_output_directory, "depth")
os.path.exists(depth_output_directory)
os.makedirs(depth_output_directory)
os.path.join(root_output_directory, "color")
os.path.exists(color_output_directory)
os.makedirs(color_output_directory)
range(0, frame_count)
scale_mesh_y(original_mesh, 1.0 + scale_factor_increment * i_frame)
renderer.render_mesh_legacy(scaled_mesh, depth_scale=1000.0)
os.path.join(color_output_directory, f"{i_frame:06d}.jpg")
os.path.join(depth_output_directory, f"{i_frame:06d}.png")
cv2.imwrite(color_path, color)
cv2.imwrite(depth_path, depth.astype(np.uint16)
shutil.copy(frame_dataset.get_intrinsics_path()
os.path.join(root_output_directory, "intrinsics.txt")
sys.exit(main()
rotate_counterclockwise(array_2d)