Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
def
is_main_process():
26
return
not dist.is_available() or not dist.is_initialized() or dist.get_rank() == 0
27
28
29
def
seed_all(seed):
Callers
5
print_config
Function · 0.90
_merge_and_save
Method · 0.90
process_images_after_vae_decoder
Method · 0.90
process_images_after_vae_decoder
Method · 0.90
run_pipeline
Method · 0.90
Calls
2
is_initialized
Method · 0.80
is_available
Method · 0.45
Tested by
no test coverage detected