StyTR-2 icon indicating copy to clipboard operation
StyTR-2 copied to clipboard

没有结果生成

Open muximuxi opened this issue 2 years ago • 6 comments

您好~感谢开源。 按照test.py 执行,加入原图和风格图像以后,在output 里面没有结果生成,也没有报错,请问是什么原因呢

muximuxi avatar Jan 06 '23 03:01 muximuxi

请问这个问题您解决了吗

ZzzTD avatar Apr 27 '23 00:04 ZzzTD

1.请更新最新版本的代码 2.下载预训练的embedding等模型 3.将 with torch.no_grad(): output= network(content,style)
output = output.cpu() 更改为 with torch.no_grad(): output= network(content,style)
output = output[0].cpu()

meareabc avatar Jun 03 '23 17:06 meareabc

1.请更新最新版本的代码 2.下载预训练的embedding等模型 3.将 with torch.no_grad(): output= network(content,style) output = output.cpu() 更改为 with torch.no_grad(): output= network(content,style) output = output[0].cpu()

我按你的说法操作了,但是依旧没有任何图片生成, 也没用错误(pds) PS D:\StyTR-2-main> python test.py --content_dir input/content/12.jpg --style_dir input/style/12.jpg --output out (pds) PS D:\StyTR-2-main>

happypuppy128 avatar Dec 23 '23 15:12 happypuppy128

1.请更新最新版本的代码 2.下载预训练的嵌入等模型 3.将 with torch.no_grad(): output= network(content,style) output = output.cpu() 更改为 with torch.no_grad(): output= network(content,style) output = output[0].cpu()

屏幕截图 2023-12-23 235720 wen文件都在,但是依旧没有任何图片生成

happypuppy128 avatar Dec 23 '23 15:12 happypuppy128

1.请更新最新版本的代码 2.下载预训练的embedding等模型 3.将 with torch.no_grad(): output= network(content,style) output = output.cpu() 更改为 with torch.no_grad(): output= network(content,style) output = output[0].cpu()

thanks!!you are hero here.

Mofr77 avatar Mar 09 '24 09:03 Mofr77