diyiiyiii / StyTR-2

StyTr2 : Image Style Transfer with Transformers
365 stars 66 forks source link

似乎StyTrans类中的this.embedding并没有实例化 #11

Closed wangzexi closed 2 years ago

wangzexi commented 2 years ago

作者你好,我在学习您代码时发现,在StyTrans类构造函数中,this.embedding看起来是一个类,并没有提供参数实例化,想请教下实例化的参数是什么。

https://github.com/diyiiyiii/StyTR-2/blob/c11ea32913d16dbf2f9a1f82ac077dbf90f143c6/models/StyTR.py#L158

https://github.com/diyiiyiii/StyTR-2/blob/c11ea32913d16dbf2f9a1f82ac077dbf90f143c6/models/StyTR.py#L197

CharlesChiuGit commented 2 years ago

u can use github to click on PatchEmbed, it will tell u the definition and references of it.

CharlesChiuGit commented 2 years ago

also, i think the author forgot to put the () after PatchEmbed, Line 158 should be self.embedding = PatchEmbed()

wangzexi commented 2 years ago

别关issue呀邓盈盈博士,这代码您不是还没修正呢!