Spaces:
Runtime error
Runtime error
File size: 1,004 Bytes
41bc6bd ae7097b 41bc6bd ae7097b 41bc6bd ae7097b 41bc6bd ae7097b 41bc6bd ae7097b 41bc6bd |
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 |
#!/usr/bin/env python
import os
def D(n, d):
return os.environ.get(f'SPOOF_{n}') or d
DATA_PATH = D('DATA_PATH', './data')
LABELS_PATH = D('LABELS_PATH', f'{DATA_PATH}/labels')
IMAGES_PATH = D('IMAGES_PATH', f'{DATA_PATH}/images')
CERTS_PATH = D('CERTS_PATH', f'{DATA_PATH}/certs')
SQUARES_DATA_PATH = D('SQUARES_DATA_PATH', f'{DATA_PATH}/squares')
SQUARES_LABELS_PATH = D('SQUARES_LABELS_PATH', f'{SQUARES_DATA_PATH}/labels')
SQUARES_IMAGES_PATH = D('SQUARES_IMAGES_PATH', f'{SQUARES_DATA_PATH}/images')
DEBUG_PATH = D('DEBUG_PATH', f'{DATA_PATH}/debug')
DEBUG_SQUARES_PATH = D('DEBUG_SQUARES_PATH', f'{DEBUG_PATH}/squares')
LOGOS_DATA_PATH = D('LOGOS_DATA_PATH', f'{DATA_PATH}/logos')
AUGMENTED_DATA_PATH = D('AUGMENTED_DATA_PATH', f'{DATA_PATH}/augmented')
AUGMENTED_LABELS_PATH = D('AUGMENTED_LABELS_PATH', f'{AUGMENTED_DATA_PATH}/labels')
AUGMENTED_IMAGES_PATH = D('AUGMENTED_IMAGES_PATH', f'{AUGMENTED_DATA_PATH}/images')
MAIN_CSV_PATH = D('MAIN_CSV_PATH', f'{DATA_PATH}/entities.csv')
|