SYMBOL INDEX (194 symbols across 26 files) FILE: src/dfp/app.py function saveStreamFile (line 24) | def saveStreamFile(stream: FileStorage, fnum: str): function saveStreamURI (line 28) | def saveStreamURI(stream: bytes, fnum: str): function home (line 34) | def home(): function dummy (line 39) | def dummy(): function process_image (line 85) | def process_image(): FILE: src/dfp/convert2tflite.py function model_init (line 22) | def model_init(config: argparse.Namespace) -> tf.keras.Model: function converter (line 39) | def converter(config: argparse.Namespace): function parse_args (line 56) | def parse_args(args: List[str]) -> argparse.Namespace: function prune (line 106) | def prune(config: argparse.Namespace): function cluster (line 156) | def cluster(config: argparse.Namespace): function quantization_aware_training (line 207) | def quantization_aware_training(config: argparse.Namespace): FILE: src/dfp/data.py function convert_one_hot_to_image (line 7) | def convert_one_hot_to_image( function _parse_function (line 21) | def _parse_function(example_proto: bytes) -> Dict[str, tf.Tensor]: function decodeAllRaw (line 31) | def decodeAllRaw( function preprocess (line 40) | def preprocess( function loadDataset (line 52) | def loadDataset(size: int = 512) -> tf.data.Dataset: function plotData (line 58) | def plotData(data: Dict[str, tf.Tensor]): function main (line 69) | def main(dataset: tf.data.Dataset): FILE: src/dfp/deploy.py function init (line 26) | def init( function predict (line 56) | def predict( function post_process (line 100) | def post_process( function colorize (line 128) | def colorize(r: np.ndarray, cw: np.ndarray) -> Tuple[np.ndarray, np.ndar... function main (line 134) | def main(config: argparse.Namespace) -> np.ndarray: function parse_args (line 186) | def parse_args(args: List[str]) -> argparse.Namespace: function deploy_plot_res (line 232) | def deploy_plot_res(result: np.ndarray): FILE: src/dfp/game/__main__.py function ray_cast_dda (line 19) | def ray_cast_dda( function loop_rays (line 79) | def loop_rays(x, y, angle, depth, w, h, binary_map, STEP_ANGLE, CASTED_R... class Game (line 86) | class Game: method __init__ (line 87) | def __init__(self, tomlfile: str = "docs/game.toml"): method _initialise_game_engine (line 96) | def _initialise_game_engine(self): method run (line 104) | def run(self): FILE: src/dfp/game/controller.py class Controller (line 9) | class Controller: method __init__ (line 10) | def __init__(self, model: Model): method player_control (line 13) | def player_control(self): FILE: src/dfp/game/model.py class Model (line 12) | class Model: method __init__ (line 27) | def __init__(self, tomlfile: str = "docs/game.toml"): method _initialise_map (line 35) | def _initialise_map(self): method _initialise_player_pose (line 50) | def _initialise_player_pose(self): FILE: src/dfp/game/view.py class View (line 11) | class View: method __init__ (line 12) | def __init__(self, model: Model): method register_window (line 15) | def register_window(self, win: pygame.Surface) -> View: method draw_dfp (line 19) | def draw_dfp(self): method show_fps (line 22) | def show_fps(self, fps: str): method draw_player_loc (line 27) | def draw_player_loc(self): method draw_player_rays (line 35) | def draw_player_rays( method draw_3d_env (line 51) | def draw_3d_env(self): method draw_3d_wall (line 63) | def draw_3d_wall( FILE: src/dfp/loss.py function cross_two_tasks_weight (line 6) | def cross_two_tasks_weight( function balanced_entropy (line 14) | def balanced_entropy(x: tf.Tensor, y: tf.Tensor) -> tf.Tensor: FILE: src/dfp/net.py function conv2d (line 15) | def conv2d( function max_pool2d (line 36) | def max_pool2d( function upconv2d (line 46) | def upconv2d( function up_bilinear (line 62) | def up_bilinear(dim: int) -> tf.keras.Sequential: class deepfloorplanModel (line 68) | class deepfloorplanModel(Model): method __init__ (line 69) | def __init__(self, config: argparse.Namespace = None): method _vgg16init (line 177) | def _vgg16init(self): method constant_kernel (line 184) | def constant_kernel( method non_local_context (line 202) | def non_local_context( method call (line 231) | def call(self, x: tf.Tensor) -> Tuple[tf.Tensor, tf.Tensor]: FILE: src/dfp/net_func.py function resnet50_backbone (line 22) | def resnet50_backbone(x, feature_names): function mobilenet_backbone (line 37) | def mobilenet_backbone(x, feature_names): function mobilenetv2_backbone (line 52) | def mobilenetv2_backbone(x, feature_names): function vgg16_backbone (line 69) | def vgg16_backbone(x, feature_names): function vertical_horizontal_filters (line 84) | def vertical_horizontal_filters( function diagonal_filters (line 90) | def diagonal_filters(h: int, w: int) -> Tuple[np.ndarray, np.ndarray]: function non_local_context (line 98) | def non_local_context(xf, x_, rbdim, stride=4): function attention (line 143) | def attention(xf, x_, rbdim): function deepfloorplanFunc (line 159) | def deepfloorplanFunc(config: argparse.Namespace = None): FILE: src/dfp/train.py function init (line 26) | def init( function plot_to_image (line 43) | def plot_to_image(figure: matplotlib.figure.Figure) -> tf.Tensor: function image_grid (line 53) | def image_grid( function train_step (line 90) | def train_step( function main (line 110) | def main(config: argparse.Namespace): function parse_args (line 144) | def parse_args(args: List[str]) -> argparse.Namespace: FILE: src/dfp/utils/legend.py function export_legend (line 10) | def export_legend( function norm255to1 (line 23) | def norm255to1(x: List[int]) -> List[float]: function handle (line 27) | def handle(m: str, c: List[float]): function main (line 31) | def main(): FILE: src/dfp/utils/rgb_ind_convertor.py function rgb2ind (line 63) | def rgb2ind( function ind2rgb (line 75) | def ind2rgb( FILE: src/dfp/utils/settings.py function overwrite_args_with_toml (line 7) | def overwrite_args_with_toml(config: argparse.Namespace) -> argparse.Nam... FILE: src/dfp/utils/util.py function fast_hist (line 7) | def fast_hist(im: np.ndarray, gt: np.ndarray, n: int = 9) -> np.ndarray: function flood_fill (line 17) | def flood_fill(test_array: np.ndarray, h_max: int = 255) -> np.ndarray: function fill_break_line (line 39) | def fill_break_line(cw_mask: np.ndarray) -> np.ndarray: function refine_room_region (line 70) | def refine_room_region(cw_mask: np.ndarray, rm_ind: np.ndarray) -> np.nd... function print_model_weights_sparsity (line 93) | def print_model_weights_sparsity(model): function print_model_weight_clusters (line 110) | def print_model_weight_clusters(model): FILE: tests/test_app.py class fakeMultiprocessing (line 15) | class fakeMultiprocessing: method Pool (line 16) | def Pool(self): method map (line 19) | def map(self, *args: str, **kwargs: int) -> np.ndarray: method __enter__ (line 22) | def __enter__(self) -> object: method __exit__ (line 25) | def __exit__( method __getitem__ (line 33) | def __getitem__(self) -> np.ndarray: class fakeForm (line 37) | class fakeForm: method __init__ (line 38) | def __init__(self, data: Dict[str, str]): method keys (line 41) | def keys(self): method getlist (line 44) | def getlist(self, key: str) -> List[str]: method __getitem__ (line 47) | def __getitem__(self, key: str) -> str: class fakeRequest (line 51) | class fakeRequest: method __init__ (line 52) | def __init__(self): function client (line 61) | def client(mocker: MockFixture) -> FlaskClient: function test_app_home (line 83) | def test_app_home(client: FlaskClient): function test_app_process_image (line 90) | def test_app_process_image(client: FlaskClient): function test_app_mock_process_empty (line 95) | def test_app_mock_process_empty(client: FlaskClient): function test_app_mock_process_uri (line 103) | def test_app_mock_process_uri(client: FlaskClient): function test_app_mock_process_file (line 117) | def test_app_mock_process_file(client: FlaskClient): FILE: tests/test_convert2tflite.py class fakeConverter (line 10) | class fakeConverter: method __init__ (line 11) | def __init__(self): method convert (line 15) | def convert(self): class fakeFile (line 19) | class fakeFile: method write (line 20) | def write(self, *args: str, **kwargs: int): method __enter__ (line 23) | def __enter__(self, *args: str, **kwargs: int): method __exit__ (line 26) | def __exit__( class fakeModel (line 35) | class fakeModel: function test_parse_args (line 39) | def test_parse_args(): function test_converter (line 44) | def test_converter(mocker: MockFixture): FILE: tests/test_data.py function _bytes_feature (line 15) | def _bytes_feature(value: bytes) -> tf.train.Feature: class TestDataCase (line 24) | class TestDataCase: method test_convert_one_hot2img (line 25) | def test_convert_one_hot2img(self): method test_preprocess (line 31) | def test_preprocess(self): method test_decodeAllRaw (line 46) | def test_decodeAllRaw(self): method test_parse_function (line 54) | def test_parse_function(self, mocker: MockFixture): method test_plotData (line 71) | def test_plotData(self, mocker: MockFixture): method test_main (line 86) | def test_main(self, mocker: MockFixture): FILE: tests/test_deploy.py class fakeLayer (line 21) | class fakeLayer: method __init__ (line 22) | def __init__(self): method __call__ (line 25) | def __call__(self, x: tf.Tensor) -> tf.Tensor: class fakeVGG16 (line 29) | class fakeVGG16: method __init__ (line 30) | def __init__(self): class fakeModel (line 36) | class fakeModel: method __init__ (line 37) | def __init__(self): method rbpfinal (line 48) | def rbpfinal(self, x: tf.Tensor) -> tf.Tensor: method non_local_context (line 51) | def non_local_context( method predict (line 56) | def predict(self, x: tf.Tensor) -> Tuple[tf.Tensor, tf.Tensor]: method invoke (line 63) | def invoke(self): method get_input_details (line 66) | def get_input_details(self) -> List[Dict[str, Tuple[int, int, int]]]: method get_output_details (line 69) | def get_output_details(self) -> List[Dict[str, Tuple[int, int, int]]]: method set_tensor (line 72) | def set_tensor(self, ind: Tuple[int, int, int], img: tf.Tensor): method get_tensor (line 75) | def get_tensor(self, ind: Tuple[int, int, int]): method load_weights (line 83) | def load_weights(self, x: str): method allocate_tensors (line 86) | def allocate_tensors(self): function model_img (line 91) | def model_img() -> Tuple[fakeModel, tf.Tensor]: function test_colorize (line 100) | def test_colorize(h: int, w: int, c: int, mocker: MockFixture): function test_post_process (line 112) | def test_post_process(h: int, w: int, c: int): function test_parse_args (line 118) | def test_parse_args(): function test_init_none (line 126) | def test_init_none(mocker: MockFixture): function test_init_log (line 137) | def test_init_log(mocker: MockFixture): function test_init_pb (line 149) | def test_init_pb(mocker: MockFixture): function test_init_tflite (line 162) | def test_init_tflite(mocker: MockFixture): function test_main (line 185) | def test_main( function test_main_tflite (line 210) | def test_main_tflite( function test_main_log (line 227) | def test_main_log(model_img: Tuple[fakeModel, tf.Tensor], mocker: MockFi... function test_deploy_plot_res (line 249) | def test_deploy_plot_res(): function test_predict (line 254) | def test_predict(model_img: Tuple[fakeModel, tf.Tensor], mocker: MockFix... FILE: tests/test_loss.py class TestLossCase (line 8) | class TestLossCase(unittest.TestCase): method test_balanced_entropy (line 12) | def test_balanced_entropy(self): method test_weight (line 16) | def test_weight(self): FILE: tests/test_net.py class TestNetCase (line 16) | class TestNetCase(unittest.TestCase): method test_deepfloorplan_forward (line 20) | def test_deepfloorplan_forward(self): method test_vgg16 (line 27) | def test_vgg16(self): method test_conv2d (line 44) | def test_conv2d(self): method test_upconv2d (line 50) | def test_upconv2d(self): method test_maxpool2d (line 56) | def test_maxpool2d(self): method test_upbilinear (line 62) | def test_upbilinear(self): FILE: tests/test_train.py class fakeModel (line 13) | class fakeModel: method __init__ (line 14) | def __init__(self): method load_weights (line 17) | def load_weights(self, weights: str): method __call__ (line 20) | def __call__( class fakeOptim (line 30) | class fakeOptim: method apply_gradients (line 31) | def apply_gradients(self, *args: str, **kwargs: int): class fakeTape (line 35) | class fakeTape: method GradientTape (line 36) | def GradientTape(self) -> object: method gradient (line 39) | def gradient(self, *args: str, **kwargs: int) -> List[Any]: method __enter__ (line 42) | def __enter__(self) -> object: method __exit__ (line 45) | def __exit__( class TestTrainCase (line 54) | class TestTrainCase: method test_image_grid (line 55) | def test_image_grid(self): method test_plot_to_image (line 62) | def test_plot_to_image(self): method test_parse_args (line 67) | def test_parse_args(self): method test_init (line 72) | def test_init(self, mocker: MockFixture): method test_trainstep (line 82) | def test_trainstep(self, mocker: MockFixture): FILE: tests/utils/test_legend.py class TestLegendCase (line 11) | class TestLegendCase(unittest.TestCase): method test_norm255to1 (line 28) | def test_norm255to1(self): method test_handle (line 31) | def test_handle(self): method test_export_legend (line 41) | def test_export_legend(self): method test_main (line 55) | def test_main(self): FILE: tests/utils/test_rgb_ind_convertor.py class TestRgbIndConvertorCase (line 8) | class TestRgbIndConvertorCase(unittest.TestCase): method test_rgb2ind (line 9) | def test_rgb2ind(self): method test_ind2rgb (line 16) | def test_ind2rgb(self): FILE: tests/utils/test_util.py class TestUtilCase (line 16) | class TestUtilCase: method test_fill_break_line (line 17) | def test_fill_break_line(self, shape: List[int]): method test_flood_fill (line 22) | def test_flood_fill(self, shape: List[int]): method test_refine_room_region (line 28) | def test_refine_room_region(self, shape: List[int]): method test_fast_hist (line 34) | def test_fast_hist(self, shape: List[int]):