Skip to content

Instantly share code, notes, and snippets.

View QiuJueqin's full-sized avatar
🐢
Focusing

Qiu Jueqin QiuJueqin

🐢
Focusing
View GitHub Profile
@QiuJueqin
QiuJueqin / slicing_comparison.py
Last active February 12, 2022 09:41
Comparison of PyTorch built-in trilinear interpolation and customized one with recursive bilinear interpolations
import torch
import torch.nn as nn
import torch.nn.functional as F
class Slicing(nn.Module):
"""
PyTorch built-in (guided) tri-linear interpolation, a.k.a. slicing in HDRNet
:param full_res: (height, width) of the full resolution image
"""