Skip to content

Commit 22ead32

Browse files
author
Mark-ZhouWX
committed
set default O2 for profile
1 parent f794678 commit 22ead32

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

research/segment-anything/configs/profile_coco_box_finetune.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ device: Ascend
55
mode: 0 # 0: graph, 1: pynative
66
work_root: &work_root ./work_dir/
77
log_level: info
8-
8+
amp_level: O2
99

1010
# ---------------------------------------------
1111
# Part2: module setting

research/segment-anything/configs/profile_flare_box_finetune.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ device: Ascend
55
mode: 0 # 0: graph, 1: pynative
66
work_root: &work_root ./work_dir/
77
log_level: info
8-
8+
amp_level: O2
99

1010
# ---------------------------------------------
1111
# Part2: module setting

research/segment-anything/segment_anything/automatic_mask_generator.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import numpy as np
88
import mindspore as ms
99
from mindspore import ops
10-
from torchvision.ops.boxes import batched_nms # type: ignore
1110

1211
from typing import Any, Dict, List, Optional, Tuple
1312

research/segment-anything/segment_anything/utils/callbacks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def on_train_epoch_end(self, run_context: RunContext):
176176

177177
@CALLBACK_REGISTRY.registry_module()
178178
class Profiler(Callback):
179-
def __init__(self, start_step=1, end_step=2, exit_after_analyze=True, out_dir='./data'):
179+
def __init__(self, start_step=1, end_step=2, exit_after_analyze=True, out_dir='./my_prof'):
180180
self.start_step = start_step
181181
self.end_step = end_step
182182
self.exit_after_analyze = exit_after_analyze

0 commit comments

Comments
 (0)