TomTomTommi / HiNet

Official PyTorch implementation of "HiNet: Deep Image Hiding by Invertible Network" (ICCV 2021)
166 stars 35 forks source link

A circular import bug #17

Open loofahsponge opened 8 months ago

loofahsponge commented 8 months ago

Hi, thank you very much for the sharing code. But there seems to be something wrong about a circular import. In model.py,you use from hinet import Hinet,but in hinet.py,you use from model import *,which will cause a circular import bug.Actually,there is no need to use from model import * in hinet.py,import torch.nn as nn is enough.