File size: 972 Bytes
7c1eee1
f8f1d3f
 
 
7c1eee1
 
 
 
 
 
 
 
a8e2ac2
716a927
7c1eee1
 
 
 
 
 
f88246b
 
 
7c1eee1
6296cf9
3e3ca46
 
f8f1d3f
 
6dc2db5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
from pathlib import Path

os.chdir(Path.cwd())

LOGDIR = os.getenv("LOGDIR", "./3DGen-Arena-logs/vote_log")
IMAGE_DIR = os.getenv("IMAGE_DIR", f"{LOGDIR}/images")

SERVER_PORT = os.getenv("SERVER_PORT", 7860)
ROOT_PATH = os.getenv("ROOT_PATH", None)
ELO_RESULTS_DIR = os.getenv("ELO_RESULTS_DIR", "./arena_elo/results/latest")

LOG_SERVER = os.getenv("LOG_SERVER", "http://139.196.105.158")
LOG_SERVER_SUBDOAMIN = os.getenv("LOG_SERVER_SUBDIR", "3DGen-Arena-hf-logs")
LOG_SERVER_ADDR = os.getenv("LOG_SERVER_ADDR", f"{LOG_SERVER}/{LOG_SERVER_SUBDOAMIN}")
# LOG SERVER API ENDPOINTS
APPEND_JSON = "append_json"
SAVE_IMAGE = "save_image"
SAVE_LOG = "save_log"

GIF_SERVER =  os.getenv("GIF_SERVER", f"{LOG_SERVER}/get_gif")
RGBA_SERVER = os.getenv("RGBA_SERVER", f"{LOG_SERVER}/get_rgba")

NUM_SIDES = 2
EVALUATE_DIMS = 5
PROMPT_NUM = 510
TEXT_PROMPT_PATH = "offline/prompts.json"

MAX_ATTEMPTS = 5
REPLICATE_API_TOKEN = os.getenv("REPLICATE_API_TOKEN", "yourKey")