[DL]SRCNN:Super-resolution with CNN

2022-4-27 写技术

import os import sys import torch import torch.nn as nn import torch.nn.functional as F from PIL import Image,ImageFilter import matplotlib.pyplot as plt import numpy as np import torchvision from torchvision import transforms from torchvision.transforms import ToTensor from torchvision.t...

阅读全文>>

标签: DL

评论(0) 浏览(1175)

[C] datalab_handout: Bit operation

2022-3-17 写技术

/* * CS:APP Data Lab * * <Please put your name and userid here> * * bits.c - Source file with your solutions to the Lab. * This is the file you will hand in to your instructor. * * WARNING: Do not include the <stdio.h> header; it confuses the dlc * compiler...

阅读全文>>

标签: C

评论(0) 浏览(1416)

[python]Some anaconda commands

2022-3-12 写技术

conda create --name opencv python=3.9 conda info -e source activate opencv

阅读全文>>

标签: python

评论(1) 浏览(2386)

[ML]Dataset of Watermellon

2022-1-25 写技术

编号,色泽,根蒂,敲声,纹理,脐部,触感,好瓜 1,青绿,蜷缩,浊响,清晰,凹陷,硬滑,是 2,乌黑,蜷缩,沉闷,清晰,凹陷,硬滑,是 3,乌黑,蜷缩,浊响,清晰,凹陷,硬滑,是 4,青绿,蜷缩,沉闷,清晰,凹陷,硬滑,是 5,浅白,蜷缩,浊响,清晰,凹陷,硬滑,是 6,青绿,稍蜷,浊响,清晰,稍凹,软粘,是 7,乌黑,稍蜷,浊响,稍糊,稍凹,软粘,是 8,乌黑,稍蜷,浊响,清晰,稍凹,硬滑,是 9,乌黑,稍蜷,沉闷,稍糊,稍凹,硬滑,否 10,青绿,硬挺,清脆,清晰,平坦,软粘,否 11,浅白,硬挺,清脆,模糊,平坦,硬滑,否 12,浅白,蜷缩,浊响,模糊,平坦,软粘...

阅读全文>>

标签: machine_learning

评论(0) 浏览(1442)

[ML]Decision Tree

2022-1-25 写技术

class node: def __init__(self): self.subtree = [] class decisionTree: def __init__(self): self.raw_data = [] self.raw_data_lines = 0 self.a = [] self.a_num = 0 def load_data(self, path): fp = open(path, "r") lines = 0...

阅读全文>>

标签: machine_learning

评论(0) 浏览(1257)

[JS]How to transform from float to buffer by javascript

2021-9-9 写技术

<head> <title>Float to Buffer</title> </head> Input Float: <textarea id="in"></textarea> Output ASCII: <textarea id="out"></textarea> <input type="button" value="Transfor" onclick="transf();" /> <br /> <br /> &...

阅读全文>>

标签: JS

评论(0) 浏览(1463)

[JS]Transform from string to ASCII

2021-9-9 写技术

<head> <title>String to ASCII</title> </head> Input String: <textarea id="in"></textarea> Output ASCII: <textarea id="out"></textarea> <input type="button" value="Transfor" onclick="transf();" /> <br /> <br /> ...

阅读全文>>

标签: JS

评论(0) 浏览(1338)

[python]Edit excel by xlrd and xlwt

2021-8-26 写技术

import xlrd import xlwt def edit_excel(fromFile, fromSheet): w_workbook = xlwt.Workbook() w_sheet = w_workbook.add_sheet("nicholas", cell_overwrite_ok=True) workbook = xlrd.open_workbook(fromFile) print(workbook.sheet_names()) sheet = workbook.sheet_names()[fromShe...

阅读全文>>

标签: python

评论(0) 浏览(1673)

[python]Read excel by xlrd

2021-8-26 写技术

import xlrd def read_excel(fromFile, fromSheet): workbook = xlrd.open_workbook(fromFile) print(workbook.sheet_names()) sheet = workbook.sheet_names()[fromSheet] sheet = workbook.sheet_by_index(fromSheet) print(sheet) row = sheet.nrows col = sheet.ncols ...

阅读全文>>

标签: python

评论(0) 浏览(1562)

[python]An example of get web page by selenium

2021-8-17 写技术

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.key...

阅读全文>>

标签: python

评论(0) 浏览(1288)

Powered by anycle 湘ICP备15001973号-1