joonmyung 1.5.14__tar.gz → 1.5.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {joonmyung-1.5.14 → joonmyung-1.5.15}/PKG-INFO +1 -1
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/script.py +18 -13
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung.egg-info/PKG-INFO +1 -1
- {joonmyung-1.5.14 → joonmyung-1.5.15}/setup.py +1 -1
- {joonmyung-1.5.14 → joonmyung-1.5.15}/LICENSE.txt +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/README.md +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/__init__.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/__init__.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/analysis.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/dataset.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/hook.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/metric.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/model.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/analysis/utils.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/app.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/data.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/draw.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/dummy.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/file.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/gradcam.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/log.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/meta_data/__init__.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/meta_data/label.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/meta_data/utils.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/metric.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/models/__init__.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/models/tome.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/status.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung/utils.py +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung.egg-info/SOURCES.txt +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung.egg-info/dependency_links.txt +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung.egg-info/not-zip-safe +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/joonmyung.egg-info/top_level.txt +0 -0
- {joonmyung-1.5.14 → joonmyung-1.5.15}/setup.cfg +0 -0
|
@@ -97,7 +97,7 @@ class GPU_Worker():
|
|
|
97
97
|
return
|
|
98
98
|
|
|
99
99
|
def message(self, text):
|
|
100
|
-
url = "https://hooks.slack.com/services/TK76B38LV/
|
|
100
|
+
url = "https://hooks.slack.com/services/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"
|
|
101
101
|
payload = {"text": text}
|
|
102
102
|
headers = {'Content-type': 'application/json'}
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ class GPU_Worker():
|
|
|
105
105
|
|
|
106
106
|
return response
|
|
107
107
|
|
|
108
|
-
def Process_Worker(processes, gpuWorker,
|
|
108
|
+
def Process_Worker(processes, gpuWorker, m = None, p = False):
|
|
109
109
|
# TODO : 실험이 완전히 끝난 시간 체크할 필요가 존재함
|
|
110
110
|
start = time.localtime()
|
|
111
111
|
print("------ Start Running!! : {} ------".format(time2str(start)))
|
|
@@ -114,25 +114,30 @@ def Process_Worker(processes, gpuWorker, id = "", p = True):
|
|
|
114
114
|
gpus = gpuWorker.getGPU()
|
|
115
115
|
prefix = f"CUDA_VISIBLE_DEVICES={gpus} nohup sh -c \'"
|
|
116
116
|
suffix = f"\' > {i+1}:gpu{gpus}.log 2>&1 "
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
if p:
|
|
118
|
+
print("------ {}:GPU{} {} ------".format(i + 1, gpus, prefix + process + suffix))
|
|
119
|
+
session = subprocess.Popen(prefix + process + suffix, shell=True)
|
|
120
|
+
gpuWorker.register_process(gpus, session)
|
|
120
121
|
gpuWorker.waitForEnd()
|
|
121
122
|
end = time.localtime()
|
|
123
|
+
|
|
122
124
|
print("------ End Running!! : {} ------".format(time2str(end)))
|
|
123
125
|
training_time = datetime.timedelta(seconds=time.mktime(end) - time.mktime(start))
|
|
124
126
|
print(f"Time 1/all : {training_time}/{training_time / len(processes)} ------")
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
if m:
|
|
128
|
+
gpuWorker.message(f"Experiments Finished {m} : "
|
|
129
|
+
f"Time 1/all : {training_time}/{training_time / len(processes)}"
|
|
130
|
+
)
|
|
132
131
|
|
|
133
132
|
|
|
134
133
|
if __name__ == '__main__':
|
|
135
134
|
# Wokring Sample
|
|
136
135
|
processes = [1,2,3,4,5]
|
|
137
136
|
gpuWorker = GPU_Worker([0,1,2,3], 30, 120, checkType=1, utilRatio=50, need_gpu=4)
|
|
138
|
-
Process_Worker(processes, gpuWorker)
|
|
137
|
+
Process_Worker(processes, gpuWorker)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
# 1호기 : https://hooks.slack.com/services/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
|
|
142
|
+
# 2호기 : https://hooks.slack.com/services/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
|
|
143
|
+
# 3호기 : https://hooks.slack.com/services/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|