Comments (5)
The input of self.pretrained_encoder() is x[:,: -1,:,:]. However, I think the input of self.pretrained_encoder() should be the same as the input of self.encode(). So it should be x, not x[:,: -1,:,:]. Am I mistaken? Thanks.
This part is a bit tricky.
So in the following line,
Line 65 in 30ce1af
we pass the input
x
into our SAM encoder. Here, x
is the 4-channel input (the RGB image and the constant channel representing the target age).In the line you linked, we actually want to pass only the RGB channels to the pre-trained pSp encoder (in order to extract the input's latent code). Therefore, I take only the first three channels if
x
when calling self.pretrained_encoder(...)
.Does that make sense?
from sam.
Hi @datbu178 ,
It seems like you're correct on both points. When I refactored the code before publishing I guess I missed a few small points. Thanks for pointing this out!
I'll make the fixes as soon as possible.
from sam.
Oh, I had a mistake. I understand now. Thank you very much for explaining it!
from sam.
Hi @datbu178 ,
I just pushed an update with the two points you posted above so I hope the issues are now fixed. Please see 30ce1af
If you still think there is still an issue please feel free to let me know.
Thanks again for bringing this to my attention!
from sam.
Dear @yuval-alaluf ,
Thank you for the answer. Yes, I think two issues are now fixed!
I just have another question in the following line of code:
Line 72 in 30ce1af
The input of self.pretrained_encoder() is x[:,: -1,:,:]. However, I think the input of self.pretrained_encoder() should be the same as the input of self.encode(). So it should be x, not x[:,: -1,:,:]. Am I mistaken? Thanks.
from sam.
Related Issues (20)
- Run SAM on CPU HOT 3
- [Error] [Win] INFO: Could not find files for the given pattern(s). HOT 4
- [ERROR] c++: error: c10_cuda.lib: No such file or directory HOT 1
- Tflite HOT 1
- No module named 'models.fused_act' HOT 2
- What is the difference between source and target? HOT 2
- How the loss lambdas are set? HOT 3
- Could you please share more details about PCA? HOT 2
- inference error HOT 2
- custom dataset
- Sorry for disturbance ,Environment/sam_env.yaml have some problem HOT 3
- how to finetune the vgg age (DEX) ? HOT 1
- How can we use this model on CPU. HOT 2
- How can I run this on CPU ? HOT 2
- ImportError: No module named 'fused' HOT 3
- Getting Current Age of person HOT 1
- urllib.error.URLError: <urlopen error [Errno 111] Connection refused> HOT 4
- Gray image test results HOT 2
- time issue
- Error When Specifying Multiple Ages for --target_age Parameter In Replicate
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 sam.