diyiiyiii / StyTR-2

StyTr2 : Image Style Transfer with Transformers
333 stars 60 forks source link

没有结果生成 #21

Open muximuxi opened 1 year ago

muximuxi commented 1 year ago

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

ZzzTD commented 1 year ago

请问这个问题您解决了吗

meareabc commented 1 year ago

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()

happypuppy128 commented 6 months ago

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 commented 6 months ago

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文件都在,但是依旧没有任何图片生成

Mofr77 commented 3 months ago

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.