|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Generate Images</title>
|
|
<link rel="icon" type="image/png" href="static/css/Blue_ABstract_Brain_Technology_Logo__1_-removebg-preview.png">
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
|
|
<style>
|
|
body {
|
|
background: linear-gradient(120deg, #f0f7ff, #e0f4ff);
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 50px auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.manual {
|
|
background: linear-gradient(135deg, #1e3a8a, #60a5fa);
|
|
padding: 30px;
|
|
border-radius: 25px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
|
margin-bottom: 30px;
|
|
text-align: left;
|
|
animation: fadeInManual 1.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeInManual {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.manual h3 {
|
|
font-size: 2rem;
|
|
color: #ffffff;
|
|
margin-bottom: 15px;
|
|
text-align: center;
|
|
text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.manual ol {
|
|
font-size: 1.2rem;
|
|
color: #ffffff;
|
|
line-height: 1.8;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.manual ol li {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.manual ol li span {
|
|
font-weight: bold;
|
|
color: #ffdd57;
|
|
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.generate {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
background: #ffffff;
|
|
border-radius: 25px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
margin-top: 30px;
|
|
animation: fadeInGenerate 1.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeInGenerate {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.generate h2 {
|
|
font-size: 2.5rem;
|
|
color: #007BFF;
|
|
margin-bottom: 20px;
|
|
font-weight: bold;
|
|
position: relative;
|
|
text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.generate h2::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, #007BFF, #86E3CE);
|
|
bottom: -10px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.generate p {
|
|
font-size: 1.2rem;
|
|
color: #555;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.form {
|
|
text-align: left;
|
|
background: linear-gradient(135deg, #f9f9fc, #e3e9ff);
|
|
padding: 30px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
animation: slideInForm 1.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes slideInForm {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #333;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-group select, .form-group input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
font-size: 1rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 10px;
|
|
transition: all 0.3s ease;
|
|
background: #f7f9fc;
|
|
}
|
|
|
|
.form-group select:focus, .form-group input:focus {
|
|
border-color: #007BFF;
|
|
box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
|
|
outline: none;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.btn-primary {
|
|
display: inline-block;
|
|
background: linear-gradient(135deg, #007BFF, #0056b3);
|
|
color: white;
|
|
padding: 12px 30px;
|
|
border-radius: 25px;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: linear-gradient(135deg, #0056b3, #003f7f);
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.btn-primary::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 25px;
|
|
background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease-in-out;
|
|
z-index: -1;
|
|
}
|
|
|
|
.btn-primary:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(120deg, #f0f7ff, #e0f4ff);
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 50px auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.steps {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.step {
|
|
flex: 1 1 calc(25% - 20px);
|
|
background: #ffffff;
|
|
border-radius: 15px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
padding: 20px;
|
|
text-align: center;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
max-width: 220px;
|
|
}
|
|
|
|
.step:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.step-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
margin: 0 auto 15px;
|
|
background: linear-gradient(135deg, #007BFF, #0056b3);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.step-icon img {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
.step-text h4 {
|
|
font-size: 1.5rem;
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.step-text p {
|
|
font-size: 1rem;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.manual {
|
|
background: linear-gradient(135deg, #1e3a8a, #60a5fa);
|
|
padding: 30px;
|
|
border-radius: 25px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
|
margin-bottom: 30px;
|
|
text-align: left;
|
|
animation: fadeInManual 1.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeInManual {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.manual h3 {
|
|
font-size: 2rem;
|
|
color: #ffffff;
|
|
margin-bottom: 15px;
|
|
text-align: center;
|
|
text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.manual ol {
|
|
font-size: 1.2rem;
|
|
color: #ffffff;
|
|
line-height: 1.8;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.manual ol li {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.manual ol li span {
|
|
font-weight: bold;
|
|
color: #ffdd57;
|
|
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.generate {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
background: #ffffff;
|
|
border-radius: 25px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
margin-top: 30px;
|
|
animation: fadeInGenerate 1.5s ease-in-out;
|
|
}
|
|
|
|
.generate h2 {
|
|
font-size: 2.5rem;
|
|
color: #007BFF;
|
|
margin-bottom: 20px;
|
|
font-weight: bold;
|
|
position: relative;
|
|
text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.generate h2::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, #007BFF, #86E3CE);
|
|
bottom: -10px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.generate p {
|
|
font-size: 1.2rem;
|
|
color: #555;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.form {
|
|
text-align: left;
|
|
background: linear-gradient(135deg, #f9f9fc, #e3e9ff);
|
|
padding: 30px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #333;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-group select, .form-group input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
font-size: 1rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 10px;
|
|
transition: all 0.3s ease;
|
|
background: #f7f9fc;
|
|
}
|
|
|
|
.btn-primary {
|
|
display: inline-block;
|
|
background: linear-gradient(135deg, #007BFF, #0056b3);
|
|
color: white;
|
|
padding: 12px 30px;
|
|
border-radius: 25px;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header class="navbar">
|
|
<div class="logo">
|
|
<img src="static/css/Blue_Abstract_Brain_Technology_Logo__1_-removebg-preview.png" alt="MedGAN Logo">
|
|
<span>MedGAN Studio</span>
|
|
</div>
|
|
<nav>
|
|
<ul>
|
|
<li><a href="/">Home</a></li>
|
|
<li><a href="{{ url_for('generate_info') }}">Generate</a></li>
|
|
<li><a href="{{ url_for('detect_info') }}">Detect</a></li>
|
|
<li><a href="{{ url_for('about_us') }}">About Us</a></li>
|
|
<li><a href="{{ url_for('contact') }}">Contact</a></li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<div class="container">
|
|
|
|
<section class="manual">
|
|
<h3>How to Use?</h3>
|
|
<div class="steps">
|
|
<div class="step">
|
|
<div class="step-icon">
|
|
<img src="static/icons/icons8-number-1-64.png" alt="Select Model">
|
|
</div>
|
|
<div class="step-text">
|
|
<h4>Select the Model</h4>
|
|
<p>Choose the GAN model you want to use from the "Model" dropdown menu.</p>
|
|
</div>
|
|
</div>
|
|
<div class="step">
|
|
<div class="step-icon">
|
|
<img src="static/icons/icons8-2-circled-64.png" alt="Select Tumor Type">
|
|
</div>
|
|
<div class="step-text">
|
|
<h4>Select the Tumor Type</h4>
|
|
<p>Pick the tumor type (Glioma, Pituitary, or Meningioma) from the "Tumor Type" dropdown.</p>
|
|
</div>
|
|
</div>
|
|
<div class="step">
|
|
<div class="step-icon">
|
|
<img src="static/icons/icons8-circled-3-c-64.png" alt="Set Number of Images">
|
|
</div>
|
|
<div class="step-text">
|
|
<h4>Set the Number of Images</h4>
|
|
<p>Enter the number of images to generate in the "Number of Images" field (1–100).</p>
|
|
</div>
|
|
</div>
|
|
<div class="step">
|
|
<div class="step-icon">
|
|
<img src="static/icons/icons8-circled-4-c-64.png" alt="Generate Images">
|
|
</div>
|
|
<div class="step-text">
|
|
<h4>Generate Images</h4>
|
|
<p>Click the "Generate Images" button to create your selected images.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<section class="generate">
|
|
<h2>Generate Brain Tumor Images</h2>
|
|
<p>Select a model, tumor type, and the number of images to generate.</p>
|
|
|
|
<form action="/generate" method="post" class="form">
|
|
<div class="form-group">
|
|
<label for="model">Model:</label>
|
|
<select name="model" id="model">
|
|
<option value="Progressive GANs">Progressive GANs</option>
|
|
<option value="DCGANs">DCGANs</option>
|
|
<option value="StyleGAN2">StyleGAN2</option>
|
|
<option value="WGANs">WGANs</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="class_name">Tumor Type:</label>
|
|
<select name="class_name" id="class_name">
|
|
<option value="Glioma">Glioma</option>
|
|
<option value="Pituitary">Pituitary</option>
|
|
<option value="Meningioma">Meningioma</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="num_images">Number of Images:</label>
|
|
<input type="number" name="num_images" id="num_images" min="1" max="100" value="1">
|
|
</div>
|
|
<button type="submit" class="btn-primary">Generate Images</button>
|
|
</form>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<p>© 2024 MedGAN Studio. All Rights Reserved.</p>
|
|
<div class="footer-links">
|
|
<a href="mailto:[email protected]">Email Us</a>
|
|
<a href="https://instagram.com/medgan"target="_blank">Instagram</a>
|
|
<a href="https://www.linkedin.com/company/medgan/" target="_blank">LinkedIn</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
|