modify mode_style_transfer code
This commit is contained in:
parent
6b9ae538fd
commit
909824d0ed
@ -157,7 +157,6 @@ class StyleTransferModel:
|
|||||||
def __init__(self, content_img, style_img, num_steps=300, style_weight=1000000, content_weight=1):
|
def __init__(self, content_img, style_img, num_steps=300, style_weight=1000000, content_weight=1):
|
||||||
self.content_img = content_img
|
self.content_img = content_img
|
||||||
self.style_img = style_img.resize(content_img.size)
|
self.style_img = style_img.resize(content_img.size)
|
||||||
#self.style_img = self.style_img.resize(self.content_img.size)
|
|
||||||
self.style_img = image_loader(self.style_img)
|
self.style_img = image_loader(self.style_img)
|
||||||
self.content_img = image_loader(self.content_img)
|
self.content_img = image_loader(self.content_img)
|
||||||
self.input_img = self.content_img.clone()
|
self.input_img = self.content_img.clone()
|
||||||
|
Loading…
Reference in New Issue
Block a user