neural_style/neural_style_app/templates/visualize.html
2024-08-10 15:25:51 +02:00

26 lines
767 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Visualize Layers</title>
</head>
<body>
<h1>Layer Visualizations</h1>
<p>Select a layer to view the image before and after processing through that layer:</p>
{% for i in range(visualizations|length) %}
<div>
<h2>Layer {{ i + 1 }}</h2>
<button onclick="document.getElementById('img_before').src='{{ url_for(show_image, index=i) }}';">
View Layer {{ i + 1 }}
</button>
</div>
{% endfor %}
<h2>Layer Output:</h2>
<img id="img_before" src="" alt="Layer Image Output" style="max-width: 100%; height: auto;">
</body>
</html>