mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-02 17:05:18 -05:00
14 lines
234 B
Python
14 lines
234 B
Python
import datetime
|
|
import numpy as np
|
|
|
|
|
|
def get_timestamp():
|
|
return int(datetime.datetime.now(datetime.timezone.utc).timestamp())
|
|
|
|
|
|
SEED_MAX = np.iinfo(np.int32).max
|
|
|
|
|
|
def get_random_seed():
|
|
return np.random.randint(0, SEED_MAX)
|