df-gan-text-to-image / error_page.html
sohanAI's picture
Upload 7 files
78cabf4 verified
<!DOCTYPE html>
<html>
<head>
<title>DF-GAN Bird Generator - Model Loading Issue</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background-color: #f8f9fa;
color: #333;
}
.container {
max-width: 800px;
margin: 40px auto;
padding: 30px;
background: white;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
h1 {
color: #d9534f;
margin-bottom: 20px;
}
h2 {
color: #333;
margin-top: 30px;
}
pre {
background-color: #f5f5f5;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
}
.warning {
background-color: #fff3cd;
border-left: 5px solid #ffc107;
padding: 15px;
margin: 20px 0;
border-radius: 5px;
}
.error {
background-color: #f8d7da;
border-left: 5px solid #dc3545;
padding: 15px;
margin: 20px 0;
border-radius: 5px;
}
.success {
background-color: #d4edda;
border-left: 5px solid #28a745;
padding: 15px;
margin: 20px 0;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="container">
<h1>DF-GAN Bird Generator - Model Loading Issue</h1>
<div class="error">
<p><strong>There was an issue loading the required model files.</strong></p>
<p>The application is running in fallback mode with randomly initialized weights. Generated images will not look like realistic birds.</p>
</div>
<h2>What happened?</h2>
<p>The application tried to download the pre-trained DF-GAN model files but encountered an error. This could be due to:</p>
<ul>
<li>Network connectivity issues</li>
<li>The model hosting service might be temporarily unavailable</li>
<li>The model files might have been moved or deleted</li>
</ul>
<h2>What can you do?</h2>
<p>Here are some options to fix this issue:</p>
<ol>
<li>Refresh the page and try again - the issue might be temporary</li>
<li>Contact the Space owner to notify them of the issue</li>
<li>If you're the owner, check that the model files are correctly hosted</li>
</ol>
<div class="success">
<p>The application will still run, but with reduced functionality. You can still enter text descriptions, but the generated images will not be realistic.</p>
</div>
<h2>Technical Details</h2>
<p>The application was unable to download or load one or more of the following files:</p>
<ul>
<li>state_epoch_1220.pth (Generator model)</li>
<li>text_encoder200.pth (Text encoder model)</li>
<li>captions_DAMSM.pickle (Vocabulary data)</li>
</ul>
<p>Check the application logs for more detailed error information.</p>
</div>
</body>
</html>