'잡동사니'에 해당되는 글 13156건

  1. 2021.02.17 strptime
  2. 2021.02.17 syslog c api(?)
  3. 2021.02.16 정신없어!! 2
  4. 2021.02.15 재활용 데이
  5. 2021.02.14 시간가는지 모르겠다.
  6. 2021.02.13 주말.. 쉬긴 개뿔
  7. 2021.02.12 피아노 사고싶다 ㅠㅠ
  8. 2021.02.12 ssd_mobilenet_v2 on tf1, tf2
  9. 2021.02.12 소득공제..
  10. 2021.02.11 fpn - Feature Pyramid Network
Programming/C Win32 MFC2021. 2. 17. 18:05

x86이나 다른데서 해봐야지.. __USE_XOPEN을 안써서 정상 작동을 안한건지

그게 아니라면 c 라이브러리를 생성할때 해당 옵션을 주고 하지 않아서 정상 작동을 하지 않은건지 모르겠다.

 

#ifdef __USE_XOPEN
/* Parse S according to FORMAT and store binary time information in TP.
   The return value is a pointer to the first unparsed character in S.  */
extern char *strptime (const char *__restrict __s,
                       const char *__restrict __fmt, struct tm *__tp)
     __THROW;
#endif

[링크 : https://stackoverflow.com/questions/3053999/c-convert-time-t-to-string-with-format-yyyy-mm-dd-hhmmss]

[링크 : https://man7.org/linux/man-pages/man3/strftime.3.html]

[링크 : https://man7.org/linux/man-pages/man3/strptime.3.html]

[링크 : https://www.it-note.kr/143]

'Programming > C Win32 MFC' 카테고리의 다른 글

vs2019 sdi , mdi 프로젝트 생성하기  (0) 2021.07.08
vkey win32 / linux  (0) 2021.04.30
while(-1) 이 될까?  (0) 2019.05.24
c언어용 JSON 라이브러리 목록  (0) 2018.10.23
uuid in c  (0) 2018.10.22
Posted by 구차니
Linux API2021. 2. 17. 12:18

사용 자체는 간단하다.

그런데 dmesg로 보는 법을 모르겠네? (서로 다른건가?)

(/var/log/message에 추가는 된다. 해당 파일은 ASCII TEXT)

 

#include <syslog.h>

int main(int argc, char **argv)
{
    syslog(LOG_INFO|LOG_LOCAL0, "hello world\n");
}

[링크 : https://www.joinc.co.kr/w/Site/system_programing/Unix_Env/syslog_1]

'Linux API' 카테고리의 다른 글

리눅스 사운드 시스템 혹은 사운드 라이브러리?  (0) 2024.05.15
kms - Kernel Mode Setting  (0) 2022.07.14
libescp  (0) 2019.01.03
cups api  (0) 2018.12.20
system wait stdout  (0) 2018.10.22
Posted by 구차니

회사 출근하니 일이 몰려온다 ㅠㅠㅠ

그나마 쳐낸것 같긴한데

 

새로운 1이 준비중.... ㅠㅠ

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

결정세액 0원이 좋은게 아니었나?  (0) 2021.02.26
계단 오르기  (0) 2021.02.21
소득공제..  (0) 2021.02.12
사과가 잘 안팔린다 ㅠㅠ  (0) 2021.02.06
내일부터는 휴가  (0) 2020.12.29
Posted by 구차니

순간 주워올까 고민 때린 lg 47lw8600

모델을 잘 못외웠나 잘 검색이 안되네

무슨 하자 있어서 버렸겠지 하고 넘기는 센스

2011년 첫 등록이니 fhd 겠지 하고 또 넘기는 센스

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

애들과 산책  (0) 2021.03.07
눈이 온다  (2) 2021.03.01
시간가는지 모르겠다.  (0) 2021.02.14
주말.. 쉬긴 개뿔  (0) 2021.02.13
피아노 사고싶다 ㅠㅠ  (0) 2021.02.12
Posted by 구차니

멀 했다고 또 주말이 훅 갔네..

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

눈이 온다  (2) 2021.03.01
재활용 데이  (0) 2021.02.15
주말.. 쉬긴 개뿔  (0) 2021.02.13
피아노 사고싶다 ㅠㅠ  (0) 2021.02.12
고통의 시간.. ㅠㅠ  (2) 2021.01.30
Posted by 구차니

쉬지도 못하고 힘들다 힘들어 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

재활용 데이  (0) 2021.02.15
시간가는지 모르겠다.  (0) 2021.02.14
피아노 사고싶다 ㅠㅠ  (0) 2021.02.12
고통의 시간.. ㅠㅠ  (2) 2021.01.30
문을 파괴한다!  (0) 2021.01.30
Posted by 구차니

중고로 올라왔는데 신품은 낮은 가격은 아니었음에도 평 자체는 좋진 않네

너무 전문적으로 진짜 피이노를 다루던 사람이라 그런가? ㅠㅠ

 

[링크 : http://www.casio-intl.com/kr/ko/emi/products/cdps100/]

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

시간가는지 모르겠다.  (0) 2021.02.14
주말.. 쉬긴 개뿔  (0) 2021.02.13
고통의 시간.. ㅠㅠ  (2) 2021.01.30
문을 파괴한다!  (0) 2021.01.30
간만에 키즈카페 다녀옴  (0) 2021.01.23
Posted by 구차니

+ 2021.02.16

오는길에 다시 보니 tensorflow model garden / research / object detection 에서 구현된

내용들이지 엄밀하게는 tensorflow 자체의 구현은 아니다.

tensorflow를 가지고 구현한 내용이라고 해야하려나?

-

 

model ssd

type ssd_mobilenet_v2_keras 를

ssd_mobilenet_v2 로 바꾸었더니 아래와 같은 에러가 발생했다.

 

INFO:tensorflow:Maybe overwriting train_steps: 1
I0212 20:50:37.009305 140651210348352 config_util.py:552] Maybe overwriting train_steps: 1
INFO:tensorflow:Maybe overwriting use_bfloat16: False
I0212 20:50:37.009468 140651210348352 config_util.py:552] Maybe overwriting use_bfloat16: False
Traceback (most recent call last):
  File "model_main_tf2.py", line 113, in <module>
    tf.compat.v1.app.run()
  File "/home/minimonk/.local/lib/python3.8/site-packages/tensorflow/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/home/minimonk/.local/lib/python3.8/site-packages/absl/app.py", line 303, in run
    _run_main(main, args)
  File "/home/minimonk/.local/lib/python3.8/site-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "model_main_tf2.py", line 104, in main
    model_lib_v2.train_loop(
  File "/home/minimonk/src/SSD-MobileNet-TF/object_detection/model_lib_v2.py", line 507, in train_loop
    detection_model = MODEL_BUILD_UTIL_MAP['detection_model_fn_base'](
  File "/home/minimonk/src/SSD-MobileNet-TF/object_detection/builders/model_builder.py", line 1106, in build
    return build_func(getattr(model_config, meta_architecture), is_training,
  File "/home/minimonk/src/SSD-MobileNet-TF/object_detection/builders/model_builder.py", line 377, in _build_ssd_model
    _check_feature_extractor_exists(ssd_config.feature_extractor.type)
  File "/home/minimonk/src/SSD-MobileNet-TF/object_detection/builders/model_builder.py", line 249, in _check_feature_extractor_exists
    raise ValueError('{} is not supported. See `model_builder.py` for features '
ValueError: ssd_mobilenet_v2 is not supported. See `model_builder.py` for features extractors compatible with different versions of Tensorflow

 

model_builder.py를 열어보라는데 여러개 파일이 나타난다.?

$ sudo find / -name model_builder.py
/home/minimonk/src/SSD-MobileNet-TF/object_detection/builders/model_builder.py
/home/minimonk/src/SSD-MobileNet-TF/models/research/object_detection/builders/model_builder.py
/home/minimonk/src/SSD-MobileNet-TF/models/research/lstm_object_detection/model_builder.py
/home/minimonk/src/SSD-MobileNet-TF/build/lib/object_detection/builders/model_builder.py

 

lstm 어쩌구를 제외하면 용량이 동일하니 같은 파일로 간주하고 하나를 열어보니 다음과 같이 나오는데..

if tf_version.is_tf2() 에 의해서 사용가능한 녀석은.. 

ssd_mobilenet_v2_fpn_keras 와

ssd_mobilenet_v2_keras 뿐이다 -_-

기대했던 ssd_mobilenet_v2는  tf1 ㅠㅠ

$ vi /home/minimonk/src/SSD-MobileNet-TF/object_detection/builders/model_builder.py
if tf_version.is_tf2():
  from object_detection.models import center_net_hourglass_feature_extractor
  from object_detection.models import center_net_mobilenet_v2_feature_extractor
  from object_detection.models import center_net_mobilenet_v2_fpn_feature_extractor
  from object_detection.models import center_net_resnet_feature_extractor
  from object_detection.models import center_net_resnet_v1_fpn_feature_extractor
  from object_detection.models import faster_rcnn_inception_resnet_v2_keras_feature_extractor as frcnn_inc_res_keras
  from object_detection.models import faster_rcnn_resnet_keras_feature_extractor as frcnn_resnet_keras
  from object_detection.models import ssd_resnet_v1_fpn_keras_feature_extractor as ssd_resnet_v1_fpn_keras
  from object_detection.models import faster_rcnn_resnet_v1_fpn_keras_feature_extractor as frcnn_resnet_fpn_keras
  from object_detection.models.ssd_mobilenet_v1_fpn_keras_feature_extractor import SSDMobileNetV1FpnKerasFeatureExtractor
  from object_detection.models.ssd_mobilenet_v1_keras_feature_extractor import SSDMobileNetV1KerasFeatureExtractor
  from object_detection.models.ssd_mobilenet_v2_fpn_keras_feature_extractor import SSDMobileNetV2FpnKerasFeatureExtractor
  from object_detection.models.ssd_mobilenet_v2_keras_feature_extractor import SSDMobileNetV2KerasFeatureExtractor
  from object_detection.predictors import rfcn_keras_box_predictor
  if sys.version_info[0] >= 3:
    from object_detection.models import ssd_efficientnet_bifpn_feature_extractor as ssd_efficientnet_bifpn

if tf_version.is_tf1():
  from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
  from object_detection.models import faster_rcnn_inception_v2_feature_extractor as frcnn_inc_v2
  from object_detection.models import faster_rcnn_nas_feature_extractor as frcnn_nas
  from object_detection.models import faster_rcnn_pnas_feature_extractor as frcnn_pnas
  from object_detection.models import faster_rcnn_resnet_v1_feature_extractor as frcnn_resnet_v1
  from object_detection.models import ssd_resnet_v1_fpn_feature_extractor as ssd_resnet_v1_fpn
  from object_detection.models import ssd_resnet_v1_ppn_feature_extractor as ssd_resnet_v1_ppn
  from object_detection.models.embedded_ssd_mobilenet_v1_feature_extractor import EmbeddedSSDMobileNetV1FeatureExtractor
  from object_detection.models.ssd_inception_v2_feature_extractor import SSDInceptionV2FeatureExtractor
  from object_detection.models.ssd_mobilenet_v2_fpn_feature_extractor import SSDMobileNetV2FpnFeatureExtractor
  from object_detection.models.ssd_mobilenet_v2_mnasfpn_feature_extractor import SSDMobileNetV2MnasFPNFeatureExtractor
  from object_detection.models.ssd_inception_v3_feature_extractor import SSDInceptionV3FeatureExtractor
  from object_detection.models.ssd_mobilenet_edgetpu_feature_extractor import SSDMobileNetEdgeTPUFeatureExtractor
  from object_detection.models.ssd_mobilenet_v1_feature_extractor import SSDMobileNetV1FeatureExtractor
  from object_detection.models.ssd_mobilenet_v1_fpn_feature_extractor import SSDMobileNetV1FpnFeatureExtractor
  from object_detection.models.ssd_mobilenet_v1_ppn_feature_extractor import SSDMobileNetV1PpnFeatureExtractor
  from object_detection.models.ssd_mobilenet_v2_feature_extractor import SSDMobileNetV2FeatureExtractor
  from object_detection.models.ssd_mobilenet_v3_feature_extractor import SSDMobileNetV3LargeFeatureExtractor
  from object_detection.models.ssd_mobilenet_v3_feature_extractor import SSDMobileNetV3SmallFeatureExtractor
  from object_detection.models.ssd_mobiledet_feature_extractor import SSDMobileDetCPUFeatureExtractor
  from object_detection.models.ssd_mobiledet_feature_extractor import SSDMobileDetDSPFeatureExtractor
  from object_detection.models.ssd_mobiledet_feature_extractor import SSDMobileDetEdgeTPUFeatureExtractor
  from object_detection.models.ssd_mobiledet_feature_extractor import SSDMobileDetGPUFeatureExtractor
  from object_detection.models.ssd_pnasnet_feature_extractor import SSDPNASNetFeatureExtractor
  from object_detection.predictors import rfcn_box_predictor

 

[링크 : https://stackoverflow.com/questions/65938445/]

 

+

와.. ssd_mobilenet_v2_fpn_keras를 돌리는데 메모리 부족으로 죽어버리네 ㄷㄷ

눈에 보이는건.. additional_layer_depth 인가.. 이걸 줄이고 해봐야 겠네..

    feature_extractor {
      type: 'ssd_mobilenet_v2_fpn_keras'
      use_depthwise: true
      fpn {
        min_level: 3
        max_level: 7
        additional_layer_depth: 128
      }
      min_depth: 16
      depth_multiplier: 1.0
      conv_hyperparams {
        activation: RELU_6,
        regularizer {
          l2_regularizer {
            weight: 0.00004
          }
        }
        initializer {
          random_normal_initializer {
            stddev: 0.01
            mean: 0.0
          }
        }
        batch_norm {
          scale: true,
          decay: 0.997,
          epsilon: 0.001,
        }
      }
      override_base_feature_extractor_hyperparams: true
    }

 

/home/minimonk/.local/lib/python3.8/site-packages/tensorflow/python/keras/backend.py:434: UserWarning: `tf.keras.backend.set_learning_phase` is deprecated and will be removed after 2020-10-11. To update it, simply pass a True/False value to the `training` argument of the `__call__` method of your layer or model.
  warnings.warn('`tf.keras.backend.set_learning_phase` is deprecated and '
2021-02-12 21:23:47.163320: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 1258291200 exceeds 10% of free system memory.
죽었음

 

+

depth를 줄이고 해보니 되는척 하다가 또 에러가 발생 ㅋㅋ

    ValueError: Number of feature maps is expected to equal the length of `num_anchors_per_location`.

 

되는 척 하더니 안되네? ㅠㅠ

AssertionError: Some Python objects were not bound to checkpointed values, likely due to changes in the Python program: [MirroredVariable:{
  0: <tf.Variable 'block_8_depthwise/depthwise_kernel:0' shape=(3, 3, 384, 1) dtype=float32, numpy=

...

WARNING:tensorflow:A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all checkpointed values were used. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mechanics for details.
W0212 21:37:27.939997 140162079770432 util.py:168] A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all checkpointed values were used. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mechanics for details.

'프로그램 사용 > yolo_tensorflow' 카테고리의 다른 글

tensorflow model 학습 시작지점  (0) 2021.02.18
tensorflow tag set 'serve'  (0) 2021.02.18
fpn - Feature Pyramid Network  (0) 2021.02.11
tensorflow pipeline.config  (0) 2021.02.10
tensorflow pipeline.conf  (0) 2021.02.08
Posted by 구차니

급여가 적어져서 그런가 왜 작년의 절반 수준일까 ㅠㅠ

 

아무튼, 리눅스에서도 되긴 한데

특정 경로가 영 마음에 안드는 곳만 있다는게 문제구만

 

/ 를 잡아두다니.. 어째 불안하다..

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

계단 오르기  (0) 2021.02.21
정신없어!!  (2) 2021.02.16
사과가 잘 안팔린다 ㅠㅠ  (0) 2021.02.06
내일부터는 휴가  (0) 2020.12.29
드디어 퇴직금 정산 끝  (0) 2020.12.21
Posted by 구차니

모델 생성해서 보니 피라미드라고 불릴 만큼 크고 아름답다(?)

 

원본은 변환하다 문제가 생긴건지 잘 올려져서 그냥 크롬에서 줄여서 올리는데 티가 안나네

이걸 모바일 디바이스에서 돌릴순 있는게 맞나... ㄷㄷ

 

It stands for Feature Pyramid Network. Its a subnetwork which outputs feature maps of different resolutions. An explanation of FPN using detectron2 as an example is here: https://medium.com/@hirotoschwert/digging-into-detectron-2-part-2-dd6e8b0526e

[링크 : https://stackoverflow.com/questions/63653903]

'프로그램 사용 > yolo_tensorflow' 카테고리의 다른 글

tensorflow tag set 'serve'  (0) 2021.02.18
ssd_mobilenet_v2 on tf1, tf2  (0) 2021.02.12
tensorflow pipeline.config  (0) 2021.02.10
tensorflow pipeline.conf  (0) 2021.02.08
tf object detection COCO  (0) 2021.02.05
Posted by 구차니