Comments (5)
Thanks for the source code! What do lines 44 to 47 of the code stand for in "datasets.transforms.ContrastiveCrop.py" ?
ch0 = min(max(int(height * h0) - h//2, 0), height - h) ch1 = min(max(int(height * h1) - h//2, 0), height - h) cw0 = min(max(int(width * w0) - w//2, 0), width - w) cw1 = min(max(int(width * w1) - w//2, 0), width - w)
These lines generate the operable region for box center.
ch0 is the minimum h, ch1 is the maximum h, and similar for cw0, cw1.
min(max(...)) is to ensure the whole box is fully inside the image.
from contrastivecrop.
Hi, B is defined in Eq. (2) as the bounding box, and B_{x0}/B_{x1} is the x coordinate of the left/right side of B.
from contrastivecrop.
Thank you for your reply
from contrastivecrop.
Thanks for the source code! What do lines 44 to 47 of the code stand for in "datasets.transforms.ContrastiveCrop.py" ?
ch0 = min(max(int(height * h0) - h//2, 0), height - h)
ch1 = min(max(int(height * h1) - h//2, 0), height - h)
cw0 = min(max(int(width * w0) - w//2, 0), width - w)
cw1 = min(max(int(width * w1) - w//2, 0), width - w)
from contrastivecrop.
Thank you for your reply!
Thanks for the source code! What do lines 44 to 47 of the code stand for in "datasets.transforms.ContrastiveCrop.py" ?
ch0 = min(max(int(height * h0) - h//2, 0), height - h) ch1 = min(max(int(height * h1) - h//2, 0), height - h) cw0 = min(max(int(width * w0) - w//2, 0), width - w) cw1 = min(max(int(width * w1) - w//2, 0), width - w)These lines generate the operable region for box center. ch0 is the minimum h, ch1 is the maximum h, and similar for cw0, cw1. min(max(...)) is to ensure the whole box is fully inside the image.
Thank you for your reply!
from contrastivecrop.
Related Issues (20)
- ask about the downstream application HOT 2
- some question about bbox_update HOT 4
- question HOT 3
- datasets HOT 2
- A little confusion about training HOT 4
- Some questions about the running process of contrastive cropping HOT 2
- The cropping may have some issues HOT 4
- Question about the cropping candidate regions
- More models and datasets coming soon? HOT 2
- An implementation detail to consult HOT 1
- A HOT 1
- A quesition
- 请问TypeError: forward() missing 1 required positional argument: 'box',这个box参数具体我应该传什么参数 HOT 7
- Some questions for the papers HOT 4
- 请问ContrastiveCrop的ratio的参数是多少? HOT 1
- How can I use it for downstream tasks HOT 4
- dataloader and updating the box HOT 3
- support custom dataset HOT 2
- how to use this code,thanks HOT 1
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 contrastivecrop.