Edge_gan总结

Edge_gan总结

(adsbygoogle = window.adsbygoogle || []).push({}); 最近刚好在做分割,顺手玩玩用GAN做边缘检测. 本意是想在BSDS轮廓分割数据集上做,同时验证针对样本极不平衡的损失函数挑选问题,简
基于Keras图像相似度计算孪生网络

基于Keras图像相似度计算孪生网络

(adsbygoogle = window.adsbygoogle || []).push({}); import keras from keras.layers import Input,Dense,Conv2D from keras.layers import MaxPooling2D,Flatten,Convolution2D from keras.models import Model import os import numpy as np from PIL import Image from keras.optimizers import SGD from scipy import misc root_path = os.getcwd() train_names = ['bear','blackswan','bus','camel','car','cows','dance','dog','hike','hoc','kite','lucia','mallerd','pigs','soapbox','stro','surf','swing','train','walking'] test_names = ['boat','dance-jump','drift-turn','elephant','libby'] def load_data(seq_names,data_number,seq_len): #生成图片对 print('loading data.....') frame_num = 51 train_data1 = [] train_data2 = [] train_lab = [] count =