Skip to content

Commit

Permalink
cosmo removed from main
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Feb 27, 2024
1 parent 88aea03 commit d2b484d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 74 deletions.
31 changes: 0 additions & 31 deletions tabs/data.php
Original file line number Diff line number Diff line change
@@ -1,40 +1,9 @@
<div id="training_data_tab" class="tab">
<div id="lenet_example_cosmo" class="tab" style="display: none">
<span class="TRANSLATEME_we_want_to_train_this_model_5_categories" style="display: block"></span>
<br>
<center>
<table border=0>
<tr>
<td class='cosmo_example_table'><span class="TRANSLATEME_fire"></span></td>
<td class='cosmo_example_table'><span class="TRANSLATEME_mandatory"></span></td>
<td class='cosmo_example_table'><span class="TRANSLATEME_prohibition"></span></td>
<td class='cosmo_example_table'><span class="TRANSLATEME_rescue"></span></td>
<td class='cosmo_example_table'><span class="TRANSLATEME_warning"></span></td>
</tr>
<tr>
<td class='cosmo_example_table'><img class='example_imgs_cosmo_mode' src='traindata/signs/fire/116px-Fire_Class_B.svg.png'></td>
<td class='cosmo_example_table'><img class='example_imgs_cosmo_mode' src='traindata/signs/mandatory/120px-DIN_4844-2_D-M001.svg.png'></td>
<td class='cosmo_example_table'><img class='example_imgs_cosmo_mode' src='traindata/signs/prohibition/120px-DIN_4844-2_D-P001.svg.png'></td>
<td class='cosmo_example_table'><img class='example_imgs_cosmo_mode' src='traindata/signs/rescue/120px-DIN_4844-2_WSE001.svg.png'></td>
<td class='cosmo_example_table'><img class='example_imgs_cosmo_mode' src='traindata/signs/warning/120px-D-W002_Warning_orange.svg.png'></td>
</tr>
</table>
</center>
<hr class="cosmo_hr">
<br>
<img style='width: 90%; max-height: 600px; max-width: 800px;' src="lang/__de__signs_network_cosmo.svg"><br>
</div>
<div id="beschreibung_cosmo_laden" style="display: none">
<hr class="cosmo_hr">
<span class="TRANSLATEME_the_more_variations_the_model_sees"></span>
</div>
<span class="user_select_none">
<div id="percentage" class="user_select_none reset_before_train_network"></div>
<button id="stop_downloading" onclick="stop_downloading_data=true" style="display: none">Stop downloading and start training</button>
</span>
<div id="photos" style="display: none; height: 95%; min-height: 400px; overflow-y: auto" class="tab reset_before_train_network"><br>Click 'Start training' to start downloading the training data and then train on them.</div>
<div id="cosmo_mode_visualization" class="tab"></div>
<div id="xy_display_data" style="display: none; height: 400px; max-height: 400px; overflow-y: auto" class="tab reset_before_train_network"><br>Click 'Start training' to start downloading the training data and then train on them.</div>
<div class="" id="download_data" style="display: none"></div>
</div>
4 changes: 2 additions & 2 deletions tabs/own_images.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="own_images_tab" class="tab">
<span class="hide_in_cosmo_mode">
<span>
<button onclick="create_and_download_zip()"><span class="TRANSLATEME_download_custom_zip_file"></span></button>
<br>
<span class="TRANSLATEME_auto_adjust_last_layer_if_dense"></span>? <input type="checkbox" value="1" id="auto_adjust_number_of_neurons" checked>
Expand All @@ -8,7 +8,7 @@
</span>
<button style="display: none" class="only_when_front_and_back_camera" onclick="switch_to_next_camera()"><img alt="Switch camera" src="_gui/rotate_camera.svg" width=32 height=32><span class="TRANSLATEME_switch_to_other_cam"></span></button>
<div id="last_layer_shape_warning"></div>
<div class='webcam_data only_when_webcam hide_in_cosmo_mode'>
<div class='webcam_data only_when_webcam'>
<span class="TRANSLATEME_number_of_images_in_series"></span>: <input type='number' min=1 value='<?php print preg_match("/^\d+$/", isset($_GET["number_of_series_images"])) ? intval($_GET["number_of_series_images"]) : 20?>' id='number_of_series_images' onchange="alter_text_webcam_series()"><br>
<span class="TRANSLATEME_delay_between_images"></span>: <input type='number' value='0.5' id='delay_between_images_in_series' min=0 onchange="alter_text_webcam_series()"><br>
</div>
Expand Down
11 changes: 3 additions & 8 deletions tabs/predict.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@
</span>
<span class="hide_when_no_conv_visualizations hide_in_cosmo_mode">
<span class="hide_when_no_conv_visualizations">
<span class="TRANSLATEME_show_grad_cam"></span>?
<input class="show_data" type="checkbox" value="1" onclick="enable_disable_grad_cam();add_layer_debuggers()" id="show_grad_cam"><br>
</span>
<span id="cosmo_visualize_last_layer" class="show_only_in_cosmo_mode" style="display: none"></span>
<canvas id="grad_cam_heatmap" style="position: fixed; right: 50px; display: none"></canvas>
<div class="container" id="predictcontainer">
<div class="show_only_in_cosmo_mode">
</div>
<span id="predict_error" style="overflow: scroll; display: none"></span><br>
<span id="own_files" class="no_autochoose_next_on_click">
<div id="generate_images_msg_wrapper" style="display:none">
Expand All @@ -34,7 +29,7 @@
<div id="prediction_non_image" class="temml_me" style="display: none"></div>
<span id='webcam_tab' class="hide_when_no_image custom_image_data" style="padding-right: 50px; border-right: thin double rgb(0, 0, 0);">
<button class="only_when_webcam hide_in_cosmo_mode large_button no_border_button" id="show_webcam_button" onclick="show_webcam();">&#128247;</button><br>
<button class="only_when_webcam large_button no_border_button" id="show_webcam_button" onclick="show_webcam();">&#128247;</button><br>
<button style="display: none" class="only_when_front_and_back_camera" onclick="switch_to_next_camera_predict()"><img alt="Switch camera" src="_gui/rotate_camera.svg" width=32 height=32><span class="TRANSLATEME_switch_to_other_cam"></span></button>
<span style='display: block' class="full_example_image_prediction display_contents">
<span id="webcam"></span>
Expand All @@ -54,7 +49,7 @@
</span>
<span id="handdrawn_img" class="handdrawn hide_when_no_image" style='text-align: justify'>
<span class="full_example_image_prediction display_inline_block cosmo_display_contents">
<span class="full_example_image_prediction display_inline_block">
<span id='predict_handdrawn_canvas'></span><br>
<span id="handdrawn_predictions"></span>
</span>
Expand Down
36 changes: 4 additions & 32 deletions tabs/training.php
Original file line number Diff line number Diff line change
@@ -1,54 +1,26 @@
<div id="training_tab" class="tab" style="float: right; width: 100%">
<br>
<button class="train_neural_network_button hide_in_cosmo_mode" style="width: 150px;" onclick="train_neural_network()"><span class="TRANSLATEME_start_training"></span></button>
<button class="train_neural_network_button" style="width: 150px;" onclick="train_neural_network()"><span class="TRANSLATEME_start_training"></span></button>
<br>
<div class="overlay_each_other">
<div class="show_only_in_cosmo_mode" style="display: none">
<span id="program_looks_at_data_span">
<span class="TRANSLATEME_program_looks_at_data"></span><br>
<hr class="cosmo_hr">
</span>
<span id="cosmo_training_predictions_explanation" style="display:none">
<span class="TRANSLATEME_predictions_explanation_while_training"></span><br>
</span>
<span id="cosmo_training_grid_stage_explanation" style="display: none">
<span class="TRANSLATEME_the_further_on_top_the_better"></span><br>
</span>
<span id="show_current_accuracy" style="display: none"></span><br>
<span id="cosmo_training_plotly_explanation" style="display:none">
<span class="TRANSLATEME_graph_explanation"></span><br>
</span>
</div>
<div id='show_cosmo_epoch_status' class="show_only_in_cosmo_mode" style="display: none">
<hr class="cosmo_hr">
<span id="network_has_seen_msg" style="display: none">
<span class="TRANSLATEME_currently_the_network_has_seen"></span>
<span id="time_estimate_cosmo">00:00</span>.
</span>
</div>
<span id="show_after_training" style="display: none" class="TRANSLATEME_training_done_text"></span>
<span id="canvas_grid_visualization"></span>
<span id="show_visualization_here_in_cosmo"></span>
<br>
<div id="training_content">
<div id="simplest_training_data_visualization" style="display: none"></div>
<div id="plotly_epoch_history_div" style="display: none">
<div id="plotly_epoch_history"></div>
</div>
<div style="display: none" class="hide_in_cosmo_mode">
<div style="display: none">
<div id="plotly_batch_history"></div>
</div>
<div style="display: none" class="hide_in_cosmo_mode">
<div style="display: none">
<div id="plotly_time_per_batch"></div>
</div>
<div style="display: none" class="hide_in_cosmo_mode">
<div style="display: none">
<div id="plotly_memory_history"></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tabs/visualizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div id="maximally_activated" class="tab maximally_activated_class">
<button id="stop_generating_images_button" style="display: none" onclick="stop_generating_images=1"><span class="TRANSLATEME_stop_generating_images"></span></button>
<div class="hide_in_cosmo_mode">
<div>
<span class="temml_me">x = </span> <span class="TRANSLATEME_input_image"></span><br>
<span class="temml_me">x* = </span> <span class="TRANSLATEME_generated_image"></span><br>
<span class="temml_me">W = </span> <span class="TRANSLATEME_weights"></span><br>
Expand Down

0 comments on commit d2b484d

Please sign in to comment.