摘要: f = torch.fft.fft2(image) # 计算频率 freqs = torch.fft.fftfreq(image.shape[-1]) print(freqs) # 设定阈值,用于分离高频和低频信息 threshold = 0.1 # 创建掩码,用于分离高频和低频信息 mask = 阅读全文
posted @ 2023-07-24 16:10 helloWorldhelloWorld 阅读(81) 评论(0) 推荐(0)
摘要: import torch from torch import nn import numpy as np import matplotlib.pyplot as plt from PIL import Image from torchvision import transforms from mat 阅读全文
posted @ 2023-07-24 09:18 helloWorldhelloWorld 阅读(78) 评论(0) 推荐(0)