-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
38 lines (32 loc) · 1.24 KB
/
config.py
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
31
32
33
34
35
36
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL", "sqlite://")
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
DEBUG = True
SECRET_KEY = os.getenv("SECRET_KEY")
VIDEO_DIR = "./data/jobs"
CACHE_DIR = "/usr/data"
RESULT_DIR = "results"
MODELS_3D_DIR = "./3d_models"
OPENPOSE_MODELS_PATH = "/openpose/models"
REDIS_URL = "redis://redis:6379/0"
QUEUES = ["default"]
# Configure, if results are stored in files or not
CACHE_RESULTS = True
# POSSIBILITIES: CMU / H36M
EXPORT_FORMAT = "CMU"
SOURCE_VIDEO_FILE = "source_video.mp4"
THUMBNAIL_FILE = "thumbnail.jpg"
OUTPUT_VIDEO_FILE = "output_video.mp4"
OUTPUT_BVH_FILE = "output_bvh.bvh"
OUTPUT_BVH_FILE_RAW = "output_raw.bvh"
OUTPUT_BVH_FILE_RAW_NUMBERED = "output_raw_%d.bvh"
OUTPUT_BVH_FILE_FILTERED = "output_filtered_%i.bvh"
OUTPUT_BVH_FILE_FILTERED_DYNAMIC = "output_filtered.bvh"
OUTPUT_BVH_FILE_FILTERED_DYNAMIC_NUMBERED = "output_filtered_%d.bvh"
OUTPUT_FILTER_FACTORS = [10, 100, 1000]
DATA_2D_FILE = "data_2d.npy"
CONFIG_2D_FILE = "config_2d.npy"
DATA_3D_FILE = "data_3d.npy"