-
Notifications
You must be signed in to change notification settings - Fork 55
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
wandb support, callback func for PipelineStage, and cache handling #382
Conversation
@@ -210,8 +210,7 @@ | |||
|
|||
|
|||
class TrackingCallback(Protocol): | |||
def __call__(self, type: TrackingInfoType, info: Dict[str, Any], n: int): | |||
... | |||
def __call__(self, type: TrackingInfoType, info: Dict[str, Any], n: int): ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
@@ -255,14 +263,18 @@ | |||
|
|||
# We can't display all 72 channels in an RGB image so instead we randomly assign | |||
# each object a color and then just allow them to overlap each other | |||
colored_semantic_map = SemanticMapBuilder.randomly_color_semantic_map( | |||
semantic_map | |||
colored_semantic_map = ( |
Check notice
Code scanning / CodeQL
Unused local variable Note test
) | ||
|
||
# Here's the full semantic map with nothing masked out because the agent | ||
# hasn't seen it yet | ||
colored_semantic_map_no_fog = SemanticMapBuilder.randomly_color_semantic_map( | ||
map_sensors[-1].semantic_map_builder.ground_truth_semantic_map | ||
colored_semantic_map_no_fog = ( |
Check notice
Code scanning / CodeQL
Unused local variable Note test
@@ -575,7 +590,7 @@ | |||
) | |||
allo_h, allo_w = allocentric_map_height_width | |||
|
|||
max_view_range = math.sqrt((ego_w / 2.0) ** 2 + ego_h ** 2) | |||
max_view_range = math.sqrt((ego_w / 2.0) ** 2 + ego_h**2) |
Check warning
Code scanning / CodeQL
Pythagorean calculation with sub-optimal numerics Warning
allenact/utils/experiment_utils.py
Outdated
return ckpts_paths | ||
else: | ||
assert len(ckpt_steps) == 1 | ||
ckpt_fn = "{}-step-{}:latest".format(run_token, steps) |
Check failure
Code scanning / CodeQL
Potentially uninitialized local variable Error
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.
LGTM. Good catch :)
Few updates:
|
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.
LGTM
sampler_select
to remove KV cache corresponding to finished processes at evaluationPipelineStage
, for example, change optimizer.