File size: 2,001 Bytes
fadb92b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from __future__ import absolute_import, division, print_function

import argparse
import os

file_dir = os.path.dirname(__file__)  # the directory that options.py resides in


class MCSSOptions:
    def __init__(self):
        self.parser = argparse.ArgumentParser(description="MCSSFloor options")

        # PATHS
        self.parser.add_argument(
            "--mcts_path",
            type=str,
            help="the name of the MonteFloorNet model",
            default="/media/sinisa/Sinisa_hdd_data/Sinisa_Projects/corridor_localisation/experiments/MonteFloorNet_experiments/room_shape_experiments/Structured3D_test/",
        )

        self.parser.add_argument(
            "--dataset_path",
            type=str,
            help="the name of the MonteFloorNet model",
            default="evaluations/s3d_floorplan_eval/montefloor_data",
        )

        self.parser.add_argument(
            "--dataset_type",
            type=str,
            help="the name of the dataset type",
            choices=["floornet", "s3d", "fsp"],
            default="s3d",
        )
        self.parser.add_argument("--scene_id", type=str, help="the name of the scene", default="val")

        self.parser.add_argument("--min_scene_ind", type=int, help="the name of the scene", default=0)
        self.parser.add_argument("--max_scene_ind", type=int, help="the name of the scene", default=251)

        # MonteFloorNet options
        # self.parser.add_argument("--model_S_path",
        #                          help="the name of the MonteFloorNet model",
        #                          default="/home/sinisa/tmp/current_experiments/montefloornet_S_model_camera_ready16/best_models/weights_935")

        self.parser.add_argument("--height", type=int, help="input image height", default=256)
        self.parser.add_argument("--width", type=int, help="input image width", default=256)

    def parse(self):
        self.options, unknown = self.parser.parse_known_args()
        return self.options