MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / is_main_process

Function is_main_process

lightx2v/utils/utils.py:25–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def is_main_process():
26 return not dist.is_available() or not dist.is_initialized() or dist.get_rank() == 0
27
28
29def seed_all(seed):

Callers 5

print_configFunction · 0.90
_merge_and_saveMethod · 0.90
run_pipelineMethod · 0.90

Calls 2

is_initializedMethod · 0.80
is_availableMethod · 0.45

Tested by

no test coverage detected