摘要: (1)直接在代码运行中查看: self.feature_map = feat.detach().cpu() for i in range(self.feature_map.size(1)): plt.matshow(self.feature_map[0,i,:,:],cmap="viridis") 阅读全文
posted @ 2020-06-18 13:15 微微伊笑 阅读(3738) 评论(1) 推荐(0) 编辑
摘要: 先准备好服务端代码,这里用express框架来构建服务端: const express = require("express"); var bodyParser = require('body-parser'); const app = express(); app.use(bodyParser.j 阅读全文
posted @ 2020-03-25 23:18 微微伊笑 阅读(3409) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-03-22 23:58 微微伊笑 阅读(340) 评论(0) 推荐(0) 编辑
摘要: import torch from torch.autograd import Variable %matplotlib inline from matplotlib import pyplot as plt from IPython import display torch.manual_seed 阅读全文
posted @ 2019-11-11 20:27 微微伊笑 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: import torchvision as tv import torchvision.transforms as transforms from torchvision.transforms import ToPILImage import torch as t from torch.autogr 阅读全文
posted @ 2019-11-07 21:27 微微伊笑 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1.首先获取到动漫图片,这里用python的scrapy框架来爬取动漫图片。图片来自于https://konachan.net/post?page=1。这里给出几个关键文件内容: (1)items.py # -*- coding: utf-8 -*- # Define here the models 阅读全文
posted @ 2019-11-01 13:57 微微伊笑 阅读(2013) 评论(0) 推荐(0) 编辑
摘要: 第一步:引入chart.js。 第二步:在html中写入canvas元素。 第三步:绘图。 结果: 阅读全文
posted @ 2019-10-25 17:18 微微伊笑 阅读(1761) 评论(0) 推荐(0) 编辑