토요일 고객센터 일 안하네 ㅠㅠ
(전화해서 개통을 해야 쓸 수 있는 USIM 이라고 되어 있어서 ㅠㅠ)
'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글
포고플 배터리식 배터리 교체 (0) | 2021.05.06 |
---|---|
포고플 충전식 분해 (0) | 2021.05.01 |
삼성 dex 앱? (0) | 2021.03.11 |
pet 보호필름 2 (0) | 2021.02.28 |
pet 보호필름 (0) | 2021.02.27 |
토요일 고객센터 일 안하네 ㅠㅠ
(전화해서 개통을 해야 쓸 수 있는 USIM 이라고 되어 있어서 ㅠㅠ)
포고플 배터리식 배터리 교체 (0) | 2021.05.06 |
---|---|
포고플 충전식 분해 (0) | 2021.05.01 |
삼성 dex 앱? (0) | 2021.03.11 |
pet 보호필름 2 (0) | 2021.02.28 |
pet 보호필름 (0) | 2021.02.27 |
오늘 먼가 사러갔는데 주차장이 비어있고 어두워서 가보니
영업종료..
덕소 롯데마트가 건재해서 구리도 당연히 살아남을줄 알았는데..
급 여름 (0) | 2021.04.21 |
---|---|
내가 운전을 이상하게 하는건가? (0) | 2021.04.18 |
알뜰교통카드 (2) | 2021.04.05 |
공기 청정기 구매 (0) | 2021.04.04 |
밥솥 압력패킹 교체 (0) | 2021.04.03 |
[링크 : https://velog.io/@devmin/파이썬-import가-module과-package-를-찾아가는-경로]
[링크 : http://www.bangseongbeom.com/sys-path-pythonpath.html]
python / opencv mouse event (0) | 2022.02.25 |
---|---|
python op overload magic method (0) | 2021.06.14 |
python yield (0) | 2021.04.07 |
python 공부 (0) | 2020.01.14 |
python 반복문 for in range() (0) | 2020.01.11 |
[링크 : http://www.tensorflow.org/lite/api_docs/python/tf/lite/Optimize]
[링크 : http://www.tensorflow.org/lite/guide/ops_select]
[링크 : http://medium.com/sclable/model-quantization-using-tensorflow-lite-2fe6a171a90d]
[링크 : http://www.tensorflow.org/lite/performance/quantization_spec]
[링크 : http://www.tensorflow.org/api_docs/python/tf/lite/TFLiteConverter]
tflite type (0) | 2021.05.01 |
---|---|
tflite example (0) | 2021.04.19 |
LSTM - Long short-term memory (0) | 2021.04.16 |
quantization: 0.003921568859368563 * q (0) | 2021.04.15 |
tflite_converter quantization (0) | 2021.04.14 |
tensorflow model 뒤져보다 보니 lstm 이라는 용어는 본적이 있는데
귀찮아서 넘기다가 이번에도 또 검색중에 걸려나와서 조사.
RNN(Recurrent nerural network) 에서 사용하는 기법(?)으로 문맥을 강화해주는 역활을 하는 듯.
[링크 : http://euzl.github.io/hackday_1/]
[링크 : https://en.wikipedia.org/wiki/Long_short-term_memory]
tflite example (0) | 2021.04.19 |
---|---|
tflite convert (0) | 2021.04.16 |
quantization: 0.003921568859368563 * q (0) | 2021.04.15 |
tflite_converter quantization (0) | 2021.04.14 |
tensorboard graph (0) | 2021.04.14 |
tflite로 변환시 unit8로 양자화 하면
분명 범위는 random으로 들어가야 해서 quantization 범위가 조금은 달라질 것으로 예상을 했는데
항상 동일한 0.003921568859368563 * q로 나와 해당 숫자로 검색을 하니
0~255 범위를 float로 정규화 하면 해당 숫자가 나온다고..
0.00392 * 255 = 0.9996 이 나오긴 하네?
quantization of input tensor will be close to (0.003921568859368563, 0). mean is the integer value from 0 to 255 that maps to floating point 0.0f. std_dev is 255 / (float_max - float_min). This will fix one possible problem |
[링크 : https://stackoverflow.com/questions/54830869/]
[링크 : https://github.com/majidghafouri/Object-Recognition-tf-lite/issues/1]
+
output_format: Output file format. Currently must be {TFLITE, GRAPHVIZ_DOT}. (default TFLITE) quantized_input_stats: Dict of strings representing input tensor names mapped to tuple of floats representing the mean and standard deviation of the training data (e.g., {"foo" : (0., 1.)}). Only need if inference_input_type is QUANTIZED_UINT8. real_input_value = (quantized_input_value - mean_value) / std_dev_value. (default {}) default_ranges_stats: Tuple of integers representing (min, max) range values for all arrays without a specified range. Intended for experimenting with quantization via "dummy quantization". (default None) post_training_quantize: Boolean indicating whether to quantize the weights of the converted float model. Model size will be reduced and there will be latency improvements (at the cost of accuracy). (default False) |
[링크 : http://man.hubwiz.com/.../python/tf/lite/TFLiteConverter.html]
TOCO(Tensorflow Lite Optimized Converter)
[링크 : https://junimnjw.github.io/%EA%B0%9C%EB%B0%9C/2019/08/09/tensorflow-lite-2.html]
tflite convert (0) | 2021.04.16 |
---|---|
LSTM - Long short-term memory (0) | 2021.04.16 |
tflite_converter quantization (0) | 2021.04.14 |
tensorboard graph (0) | 2021.04.14 |
generate_tfrecord.py (0) | 2021.04.13 |
기존에 KT LTE 23.1로 6600원 내고 쓰고 있었는데 가격이 더 내렸네
하지만 프로모션 요금이라 KT에서 KT로 갈수는 없으니
SK로 점프!
300분 / 300건 / 10G 라서 이전의 2.5 + 11G = 13.5GB에 비하면 많이 부족하지만..
그래도 6600원 빠지고 전화시간 300분으로 늘어나는게 어디야 ㅠㅠ
KT LTE egg 11G 도 없애야지!
고속도로 주행중 엔진 경고등 (0) | 2021.04.25 |
---|---|
이번달 교통비 폭발중 (0) | 2021.04.23 |
야 너두 6천? (2) | 2021.04.01 |
arm 서버 (0) | 2021.03.15 |
지하철 타고 오다가 쿨쿨 (0) | 2021.03.10 |
조선일보 1평방 침대엔 170cm 리얼돌이.. 동네로 퍼지는 '인형매춘'
강다은 기자 입력 2021. 04. 15. 03:0
[링크 : https://news.v.daum.net/v/20210415030353979]
매춘 - 돈을 받고 성관계를 해 줌.
[링크 : https://krdict.korean.go.kr/dicSearch/SearchView?wordMatchFlag=N...&ParaWordNo=55741...]
성행위 - 남자와 여자가 성기를 통하여 육체적으로 관계를 맺음.
[링크 : https://krdict.korean.go.kr/dicSearch/SearchView?wordMatchFlag=N...&ParaWordNo=85320...]
매춘은 돈을 받고 성행위를 하는 것이고
성행위는 남장와 여자가 성기를 통해 관계를 맺는 것이면
인형은 인간의 형상을 따랐을 뿐 성별이 없는 물건인데 그렇다면 성행위 라는 것 자체가 성립되지 않는 것 아닌가?
(이렇게 적고 보니 2d 캐릭도 인간으로 만들어 버렸던 만행이 떠오르네)
그렇다면 성행위도 아니고 유사성행위로 간주하더라도 대상 자체가 돈을 받는건 아니니
매춘이라고 하기에는 애매하지 않나? (곰은 재주 넘고 돈은 딴놈이 챙기는 ...?)
여자도 군대가라 season 2? (0) | 2021.04.20 |
---|---|
여자도 군대가라? (0) | 2021.04.19 |
관음충의 발생학? (2) | 2021.03.24 |
뷔페니즘 비판기사 (2) | 2019.05.03 |
소녀들에게 완벽이 아닌 용기를 가르치세요 ted 강연 (2) | 2019.04.22 |
이것저것.. 원본 소스까지 뒤지고 있는데 이렇다 할 원하는 답이 안보인다.
[링크 : https://www.tensorflow.org/model_optimization/guide/quantization/training]
[링크 : https://www.tensorflow.org/model_optimization/guide/quantization/training_example]
[링크 : https://github.com/tensorflow/.../lite/g3doc/performance/post_training_quantization.md]
[링크 : https://github.com/tensorflow/.../lite/g3doc/performance/quantization_spec.md]
util_test.py
def _generate_integer_tflite_model(quantization_type=dtypes.int8):
"""Define an integer post-training quantized tflite model."""
# Load MNIST dataset
n = 10 # Number of samples
(train_images, train_labels), (test_images, test_labels) = \
tf.keras.datasets.mnist.load_data()
train_images, train_labels, test_images, test_labels = \
train_images[:n], train_labels[:n], test_images[:n], test_labels[:n]
# Normalize the input image so that each pixel value is between 0 to 1.
train_images = train_images / 255.0
test_images = test_images / 255.0
# Define TF model
model = tf.keras.Sequential([
tf.keras.layers.InputLayer(input_shape=(28, 28)),
tf.keras.layers.Reshape(target_shape=(28, 28, 1)),
tf.keras.layers.Conv2D(filters=12, kernel_size=(3, 3), activation="relu"),
tf.keras.layers.MaxPooling2D(pool_size=(2, 2)),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(10)
])
# Train
model.compile(
optimizer="adam",
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
metrics=["accuracy"])
model.fit(
train_images,
train_labels,
epochs=1,
validation_split=0.1,
)
# Convert TF Model to an Integer Quantized TFLite Model
converter = tf.lite.TFLiteConverter.from_keras_model(model)
converter.optimizations = {tf.lite.Optimize.DEFAULT}
def representative_dataset_gen():
for _ in range(2):
yield [
np.random.uniform(low=0, high=1, size=(1, 28, 28)).astype(
np.float32)
]
converter.representative_dataset = representative_dataset_gen
if quantization_type == dtypes.int8:
converter.target_spec.supported_ops = {tf.lite.OpsSet.TFLITE_BUILTINS_INT8}
else:
converter.target_spec.supported_ops = {
tf.lite.OpsSet
.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8
}
tflite_model = converter.convert()
return tflite_model
lite_v2_test.py
def _getIntegerQuantizeModel(self):
np.random.seed(0)
root = tracking.AutoTrackable()
@tf.function(
input_signature=[tf.TensorSpec(shape=[1, 5, 5, 3], dtype=tf.float32)])
def func(inp):
conv = tf.nn.conv2d(
inp, tf.ones([3, 3, 3, 16]), strides=[1, 1, 1, 1], padding='SAME')
output = tf.nn.relu(conv, name='output')
return output
def calibration_gen():
for _ in range(5):
yield [np.random.uniform(-1, 1, size=(1, 5, 5, 3)).astype(np.float32)]
root.f = func
to_save = root.f.get_concrete_function()
return (to_save, calibration_gen)
def testInvalidIntegerQuantization(self, is_int16_quantize,
inference_input_output_type):
func, calibration_gen = self._getIntegerQuantizeModel()
# Convert quantized model.
quantized_converter = lite.TFLiteConverterV2.from_concrete_functions([func])
quantized_converter.optimizations = [lite.Optimize.DEFAULT]
quantized_converter.representative_dataset = calibration_gen
if is_int16_quantize:
quantized_converter.target_spec.supported_ops = [
lite.OpsSet.\
EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8,
lite.OpsSet.TFLITE_BUILTINS
]
with self.assertRaises(ValueError) as error:
quantized_converter.inference_input_type = dtypes.int8
quantized_converter.inference_output_type = dtypes.int8
quantized_converter.convert()
self.assertEqual(
'The inference_input_type and inference_output_type '
"must be in ['tf.float32', 'tf.int16'].", str(error.exception))
def testCalibrateAndQuantizeBuiltinInt16(self):
func, calibration_gen = self._getIntegerQuantizeModel()
# Convert float model.
float_converter = lite.TFLiteConverterV2.from_concrete_functions([func])
float_tflite_model = float_converter.convert()
self.assertIsNotNone(float_tflite_model)
converter = lite.TFLiteConverterV2.from_concrete_functions([func])
# TODO(b/156309549): We should add INT16 to the builtin types.
converter.optimizations = [lite.Optimize.DEFAULT]
converter.target_spec.supported_ops = [lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.representative_dataset = calibration_gen
converter._experimental_calibrate_only = True
calibrated_tflite = converter.convert()
quantized_tflite_model = mlir_quantize(
calibrated_tflite, inference_type=_types_pb2.QUANTIZED_INT16)
self.assertIsNotNone(quantized_tflite_model)
# The default input and output types should be float.
interpreter = Interpreter(model_content=quantized_tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
self.assertLen(input_details, 1)
self.assertEqual(np.float32, input_details[0]['dtype'])
output_details = interpreter.get_output_details()
self.assertLen(output_details, 1)
self.assertEqual(np.float32, output_details[0]['dtype'])
# Ensure that the quantized weights tflite model is smaller.
self.assertLess(len(quantized_tflite_model), len(float_tflite_model))
LSTM - Long short-term memory (0) | 2021.04.16 |
---|---|
quantization: 0.003921568859368563 * q (0) | 2021.04.15 |
tensorboard graph (0) | 2021.04.14 |
generate_tfrecord.py (0) | 2021.04.13 |
Learning without Forgetting (LwF) (0) | 2021.04.12 |
서비스로 만들어서 넣거나
자동 로그인 켜거나
[링크 : https://askubuntu.com/questions/636270/vino-vnc-server-unable-to-start-on-startup]
ubuntu 무선 미러링 (0) | 2021.07.13 |
---|---|
gpsd 현재 좌표 얻기 (0) | 2021.06.05 |
ubuntu gnome-control-center over ssh (0) | 2021.04.14 |
우분투 패키지 버전 확인하기 (0) | 2020.12.16 |
ubuntu 20.04 한글입력기 (2) | 2020.12.07 |