Comments (5)
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()
from stytr-2.
请问这个问题您解决了吗
from stytr-2.
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>
from stytr-2.
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](https://private-user-images.githubusercontent.com/136563273/292634503-0e766d1f-09bd-4f15-8c4f-a4d02b99ac58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNjM2NjAsIm5iZiI6MTcyMjI2MzM2MCwicGF0aCI6Ii8xMzY1NjMyNzMvMjkyNjM0NTAzLTBlNzY2ZDFmLTA5YmQtNGYxNS04YzRmLWE0ZDAyYjk5YWM1OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOVQxNDI5MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yOTE0NGMwYTgyZDI1YjMzZWQ0ZDUyOGQ5YmM3YTY3ZGYyYmFmOWZmYzcyMGMyYzUwYTliYmU0MDU3OTg0ZjUzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.QQPQpo1ZVzQD2EBNvu8Pir5V5hqNNv8veNJ7pxFAiZY)
from stytr-2.
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.
from stytr-2.
Related Issues (20)
- dataset HOT 1
- PatchEmbed源码和论文图中好像操作方法好像不太一样 HOT 4
- 作者您好!对于位置编码有一些疑问
- About the patch partition. HOT 1
- inference parameters
- Arbitrary output size instead of square HOT 3
- Request for elaboration regarding the Dataset HOT 2
- content leak HOT 1
- Error in running "train.py"
- AttributeError: 'tuple' object has no attribute 'cpu' HOT 1
- Hello, thank you for your great work.
- Hi,please help me HOT 4
- About the metric score of StyTr2:Image Style Transfer with Transformers
- 关于代码中构建的transformer的问题
- running train.py get wrong
- 0
- 非常感谢你的论文做出的贡献
- I replace the code with yours, but I got the output as this![result](https://user-images.githubusercontent.com/53261018/186422373-0678c37a-8d2d-45ac-97cd-b772c99f0368.jpg) HOT 2
- Loss weight different values different from the paper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stytr-2.