Skip to content

Commit 9db7ae3

Browse files
committed
small changes after testing
1 parent 20f07c5 commit 9db7ae3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

DeepLabStream.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,9 @@ def create_dataframes(self):
511511
Outputting dataframes to csv
512512
"""
513513
for num, camera in enumerate(self._data_output):
514+
print("Saving database for device {}".format(camera))
514515
df = pd.DataFrame(self._data_output[camera])
515516
df.index.name = 'Frame'
516-
print("Saving database for device {}".format(camera))
517517
df.to_csv(OUT_DIR + '/DataOutput{}'.format(camera) + '-' + time.strftime('%d%m%Y-%H%M%S') + '.csv', sep=';')
518518
print("Database saved")
519519

@@ -522,8 +522,10 @@ def create_dataframes(self):
522522
######
523523
@staticmethod
524524
def greetings():
525+
from utils.configloader import EXP_NAME, EXP_ORIGIN
525526
print("This is DeepLabStream")
526527
print("Developed by: Jens Schweihoff and Matvey Loshakov")
528+
print(f'Initializing {EXP_ORIGIN.lower()} experiment: {EXP_NAME}...')
527529

528530
def get_camera_manager(self):
529531
return self._camera_manager

experiments/utils/exp_setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def get_process_settings(process_name, parameter_dict):
9595

9696

9797
def setup_experiment():
98-
9998
if EXP_ORIGIN.upper() == 'BASE':
10099
config = cfg.ConfigParser()
101100
path = os.path.join(os.path.dirname(__file__), '..', 'configs', f'{EXP_NAME}.ini')

utils/configloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_script_path():
5151

5252

5353
# experiment
54-
EXP_ORIGIN = dsc_config['Experiment'].get('EXP_NAME')
54+
EXP_ORIGIN = dsc_config['Experiment'].get('EXP_ORIGIN')
5555
EXP_NAME = dsc_config['Experiment'].get('EXP_NAME')
5656
RECORD_EXP = dsc_config['Experiment'].getboolean('RECORD_EXP')
5757

0 commit comments

Comments
 (0)