mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00: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)
|