-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement fixed temp embedding #30
Conversation
…`model_utils.get_boxes_time` to be more clear about the output
Warning Rate Limit Exceeded@aaprasad has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 51 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent updates encompass a series of refinements and enhancements across various modules, aimed at improving data handling, embedding computations, code clarity, and test case robustness. These changes seek to streamline default settings, method functionalities, and testing procedures for a more efficient and effective codebase. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
biogtr/data_structures.py
Outdated
@@ -21,7 +21,7 @@ def __init__( | |||
point_scores: ArrayLike = None, | |||
instance_score: float = -1.0, | |||
skeleton: sio.Skeleton = None, | |||
pose: dict[str, ArrayLike] = np.array([]), | |||
pose: dict[str, ArrayLike] = {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still a mutable! Set it to None and initialize in the constructor.
biogtr/models/embedding.py
Outdated
@@ -108,8 +108,8 @@ def _check_init_args(self, emb_type: str, mode: str): | |||
f"Embedding `mode` must be one of {self.EMB_MODES} not {mode}" | |||
) | |||
|
|||
if mode == "fixed" and emb_type == "temp": | |||
raise NotImplementedError("TODO: Implement Fixed Sinusoidal Temp Embedding") | |||
# if mode == "fixed" and emb_type == "temp": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused comments
tests/test_models.py
Outdated
times = torch.rand(size=(N,)) | ||
boxes = torch.rand(N, 2) * (1024 - 128) | ||
boxes = torch.concat([boxes, boxes + 128], axis=-1) | ||
print(boxes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
tests/test_models.py
Outdated
|
||
print(sine_with_args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
biogtr/models/embedding.py
Outdated
torch.Tensor, the sine positional embeddings | ||
(embedding[:, 4i] = sin(x) | ||
embedding[:, 4i+1] = cos(x) | ||
embedding[4i+2] = sin(y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing some colons here?
* remove unnecessary comments/print statements * use `None` instead of empty mutables.
* remove unnecessary comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Implement fixed sinusoidal temporal embeddings
Summary by CodeRabbit
New Features
Bug Fixes
get_instances
method to improve accuracy and performance.Documentation
Refactor
Tests