Explorar el Código

'修改了部分图片,并更新了后端代码'

master
刘冬煜 hace 4 años
padre
commit
cdbc313364
Se han modificado 4 ficheros con 21 adiciones y 18 borrados
  1. BIN
      style-transform-master/.vs/style-transform-master/v16/.suo
  2. BIN
      style-transform-master/style-transform-master/html/images/logo.png
  3. +16
    -18
      style-transform-master/style-transform-master/html/index.html
  4. +5
    -0
      style-transform-master/style-transform-master/server.js

BIN
style-transform-master/.vs/style-transform-master/v16/.suo Ver fichero


BIN
style-transform-master/style-transform-master/html/images/logo.png Ver fichero

Antes Después
Anchura: 179  |  Altura: 53  |  Tamaño: 16 KiB Anchura: 358  |  Altura: 53  |  Tamaño: 5.6 KiB

+ 16
- 18
style-transform-master/style-transform-master/html/index.html Ver fichero

@ -700,8 +700,9 @@
<!-- Slides -->
<div class="teams-slides col-md-8 col-sm-10 col-xs-12 col-md-offset-2 col-sm-offset-1">
<img src="images/img-teams/team2.jpg" alt="">
<p class="client-info">Randy Dode</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisic</p>
<p>刘冬煜</p>
<p>学号:10185101162</p>
<p>邮箱:1124171308@qq.com</p>
</div>
<!-- Slides End -->
@ -711,7 +712,6 @@
<p>章可儿</p>
<p>学号:10182100208</p>
<p>邮箱:19966422680@163.com</p>
</div>
<!-- Slides End -->
@ -779,22 +779,24 @@
<div class="contact-form wow bounceInRight">
<!--NOTE: Update your email Id in "contact_me.php" file in order to receive emails from your contact form-->
<form name="sentMessage" id="contactForm" novalidate method="post">
<form name="sentMessage" id="contactForm" novalidate method="post" action="generate">
<div class="col-md-6">
<h4>请选择内容图片:</h4>
<img id="cropedBigImg0" src="" class="teams-slides col-md-8 col-sm-10 col-xs-12 col-md-offset-2 col-sm-offset-1"/>
<input type="file" id="chooseImage0"
<input type="file" id="content_image"
accept="image/gif,image/jpeg, image/png, image/jpg" />
<p class="help-block"></p>
</div>
<div class="col-md-6">
<h4>请选择风格图片:</h4>
<img id="cropedBigImg1" src="" class="teams-slides col-md-8 col-sm-10 col-xs-12 col-md-offset-2 col-sm-offset-1"/>
<input type="file" id="chooseImage1"
<input type="file" id="style_image"
accept="image/gif,image/jpeg, image/png, image/jpg" />
</div>
<div class="col-md-12">
<textarea class="form-control" placeholder="请输入训练轮数" id="message"></textarea>
<textarea class="form-control" placeholder="请输入训练轮数" id="max_epoch"></textarea>
</div>
<div class="col-md-8 col-md-offset-2"><br>
@ -886,22 +888,18 @@
<div class="row footer-containertent">
<div class="col-md-4">
<img src="images/logo.png" alt="">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et porro quos iste ratione doloribus
asperiores, error omnis delectus rerum sapiente. Et, aliquam modi beatae quae in perferendis ab
est fugiat!</p>
<p>风格迁移大师——智能的算法绘画专家</p>
</div>
<div class="col-md-4">
<h4>News & Updates</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod, nam corporis quas, saepe minima
error aperiam dolorum aliquam, quis deserunt eos eius quisquam odio itaque.</p>
<h4>最新公告</h4>
<p>风格迁移大师上线啦!快来上传图片,完成绘画吧!</p>
</div>
<div class="col-md-4 contac-us">
<h4>Contact Us</h4>
<p>Lorem ipsum dolor sit amet adipisicing elit.</p>
<h4>联系我们</h4>
<ul>
<li><i class="fa fa-home"></i>123 New Venu Street</li>
<li><i class="fa fa-phone"></i>001 123 12345 99</li>
<li><i class="fa fa-envelope-o"></i>support@website.com</li>
<li><i class="fa fa-home"></i>上海市普陀区中山北路3663号华东师范大学</li>
<!--- <li><i class="fa fa-phone"></i>001 123 12345 99</li> --->
<li><i class="fa fa-envelope-o"></i>http://dase.ecnu.edu.cn/</li>
</ul>
</div>
</div>

+ 5
- 0
style-transform-master/style-transform-master/server.js Ver fichero

@ -18,6 +18,11 @@ server.get('/', function (req, res) {
});
server.post('/generate', function (req, res) {
//max_epoch style_image content_image
max_epoch = req.body.max_epoch;
style_image = req.body.style_image;
content_image = req.body.content_image;
let taskID = Date.now.toString(16);
res.cookie("taskID", taskID, {maxAge: 900000, httpOnly: true});
res.end('<script src="./js/getImage.js"></script><script>setInterval(function() {detectImage("16");}, 5000);</script>');

Cargando…
Cancelar
Guardar