'2021/02/20'에 해당되는 글 2건

  1. 2021.02.20 tensorflow2 학습 해보기 어렵네..
  2. 2021.02.20 의사 면허 취소 반대?

아주 에러가 에러에 에러를 무는구만...

 

ModuleNotFoundError: No module named 'official'

pip3 install tf-models-official

[링크 : https://github.com/tensorflow/models/issues/8291]

 

from object_detection.protos import string_int_label_map_pb2 ImportError: cannot import name 'string_int_label_map_pb2' 

sudo apt-get install protobuf-compiler

protoc object_detection/protos/*.proto --python_out=.

[링크 : https://github.com/tensorflow/models/issues/7877]

 

tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for checkpoint/mobilenet_v2.ckpt-1

[링크 : https://github.com/bourdakos1/Custom-Object-Detection/issues/11]

[링크 : https://github.com/tensorflow/models/issues/2676]

 

일단은 기존의 체크포인트가 있는건가 싶어서 아래의 경로에서 학습된걸 받고

config에서 300 300인걸 320 320으로 수정하고 아래와 같이 ckpt-0.data 식으로 되어 있어서 ckpt-0만 입력해주니 일단 넘어간다.

train_config: {
  fine_tune_checkpoint_version: V2
  fine_tune_checkpoint: "checkpoint/ckpt-0"
  fine_tune_checkpoint_type: "classification"

[링크 : http://download.tensorflow.org/models/object_detection/tf2/20200711/ssd_mobilenet_v2_320x320_coco17_tpu-8.tar.gz]

 

tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 629145600 exceeds 10% of free system memory.

config 파일에서 찾아보니 train_config에 batch_size가 좀 큰 듯?

train_config: {
  fine_tune_checkpoint_version: V2
  fine_tune_checkpoint: "aimd/checkpoint/ckpt-0"
  fine_tune_checkpoint_type: "classification"
  batch_size: 512

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

 

AssertionError: Some Python objects were not bound to checkpointed values, likely due to changes in the Python program: [SyncOnReadVariable:{
  0: <tf.Variable 'block_6_expand_BN/moving_variance:0' shape=(192,) dtype=float32, numpy=

아니. 제공된 건데 왜 detection이 아니고 classification으로 되어 있는거야?

# fine_tune_checkpoint_type: "classification"

fine_tune_checkpoint_type: "detection"

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

 

 

ValueError: Cannot assign to variable BoxPredictor/ConvolutionalClassHead_0/ClassPredictor/bias:0 due to variable shape (6,) and value shape (273,) are incompatible

원래 학습된게 90개를 구분하도록 된 녀석인데 강제로 숫자를 바꾸어 주었더니(90->1) 저렇게 에러가 난듯.

대충 (1+1)*3 과 (90+1)*3 을 해보면 맞는 수치인 것 같은데..

[링크 : https://eehoeskrap.tistory.com/368]

 

i5-2520m 에서 1번의 train/ 1번의 eval을 하도록 설정하였는데

train 880 여개 eval 220  여개 인데 나름 1분 30초면 빠른건가? (쌩 cpu 만으로 하는데)

2021. 02. 20. (토) 23:47:07 KST
real 1m29.988s
user 2m4.538s
sys 0m6.553s
2021. 02. 20. (토) 23:48:37 KST
Posted by 구차니

조금 범위가 너무 광범위 한거 아닌거 싶긴 하지만

대부분은 여론은 통과시켜야 하지 의사들이 너무 윤리적이지 못하다 쪽으로 가는 듯.

 

아무튼 강력범죄를 어떻게 규정하게 되는진 모르겠지만

운전중에 사고로 누군가를 죽이게 될 경우 의사면허 박탈이 맞는것이냐 라고 의협은 이야기 하긴 하는데

 

그럼 의료행위중 발생한 사망사건이나 성추행/성폭행으로 제한하고

수술실 CCTV를 밀어 붙이는게 더 명분이 설려나?

 

어짜피 고삐없이 마음대로 하던 것에 제동이 걸리는 건 매한가지라서

어느쪽이던 반대를 할건 뻔하니 밀어 붙여야 하는게 옳은걸까?

 

[링크 : http://news.v.daum.net/v/20210220172534855]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

서울 시민은 아니지만..  (2) 2021.04.07
15년 전 탓을 하네  (0) 2021.03.09
미국 정전 반도체 타격  (2) 2021.02.17
트럼프의 나비효과?  (0) 2021.01.10
민주당 머하는 걸까...  (4) 2021.01.02
Posted by 구차니