t perd viz - wip
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
<script src="{{ url_for('static', filename='js/annotation_manager.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/time_navigator.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/training_controller.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/live_updates_ws.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/live_updates_polling.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
|
||||
{% block extra_js %}{% endblock %}
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<div class="small">
|
||||
<div>Epoch: <span id="training-epoch">0</span>/<span id="training-total-epochs">0</span></div>
|
||||
<div>Loss: <span id="training-loss">--</span></div>
|
||||
<div>GPU: <span id="training-gpu-util">--</span>% | CPU: <span id="training-cpu-util">--</span>%</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -446,6 +447,14 @@
|
||||
document.getElementById('training-epoch').textContent = progress.current_epoch;
|
||||
document.getElementById('training-total-epochs').textContent = progress.total_epochs;
|
||||
document.getElementById('training-loss').textContent = progress.current_loss.toFixed(4);
|
||||
|
||||
// Update GPU/CPU utilization
|
||||
const gpuUtil = progress.gpu_utilization !== null && progress.gpu_utilization !== undefined
|
||||
? progress.gpu_utilization.toFixed(1) : '--';
|
||||
const cpuUtil = progress.cpu_utilization !== null && progress.cpu_utilization !== undefined
|
||||
? progress.cpu_utilization.toFixed(1) : '--';
|
||||
document.getElementById('training-gpu-util').textContent = gpuUtil;
|
||||
document.getElementById('training-cpu-util').textContent = cpuUtil;
|
||||
|
||||
// Check if complete
|
||||
if (progress.status === 'completed') {
|
||||
|
||||
Reference in New Issue
Block a user