Comments (12)
Could you provide shapes of feat, feat_recon_pos, feat_recon_neg ?
from lba.
this three is all [64, 1024, 18, 9],i also print the shape of self.criterion(feat, feat_recon_pos, feat_recon_neg),it is [64, 1024, 18],the last dimension is disappear,i think the reason is the setting of the nn.TripletMarginLoss(margin=0.3, p=2.0, reduce=False),also,i print the shape of comask_pos,it is [64, 1, 18, 9]
from lba.
Could you specify your pytorch version?
from lba.
python 3.7
from lba.
PyTorch version?
from lba.
pytorch 1.10.1
from lba.
Please check out the README.md file: our implementation is based on PyTorch 1.7.1
The behaviour within nn.TripletMarginLoss may differ across PyTorch versions.
You might want to reshape tensors prior to passing them through nn.TripletMarginLoss.
from lba.
ok ,thank you for your help,may i ask what is the shape of your implementation about the self.criterion(feat, feat_recon_pos, feat_recon_neg)?
from lba.
All of them have to be [batch size, fdim, H, W].
Check out soft_warping
in model.py
from lba.
All of them have to be [batch size, fdim, H, W]. Check out
soft_warping
in model.py
I have the same problem, so may i want to ask what is the shape of your implementation about the comask_pos?
from lba.
Below are i/o dimensions for compute_comask
that outputs comask_pos
:
matching_pr
[bs, hw, hw]mask_q
[bs, 1, h, w]mask_k
[bs, 1, h, w]comask
[bs, 1, h, w]
where h and w are height and width of feature maps, respectively.
from lba.
Below are i/o dimensions for
compute_comask
that outputscomask_pos
:
matching_pr
[bs, hw, hw]mask_q
[bs, 1, h, w]mask_k
[bs, 1, h, w]comask
[bs, 1, h, w]where h and w are height and width of feature maps, respectively.
OK, thank you!
from lba.
Related Issues (6)
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 lba.