MCPcopy Create free account
hub / github.com/Netflix/void-model / cleanup_scene

Function cleanup_scene

data_generation/kubric_variable_objects.py:46–56  ·  view source on GitHub ↗

Clean up Blender and PyBullet to prevent memory leaks

()

Source from the content-addressed store, hash-verified

44]
45
46def cleanup_scene():
47 """Clean up Blender and PyBullet to prevent memory leaks"""
48 try:
49 pb.disconnect()
50 except:
51 pass
52 gc.collect()
53 try:
54 bpy.ops.wm.read_factory_settings(use_empty=True)
55 except:
56 pass
57
58def apply_camera_motion(camera, motion_type, cam_distance, cam_angle, cam_height,
59 look_at_point, frame_start, frame_end, rng, motion_params=None):

Callers 2

generate_oneFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected