Tesseract error while building training tools related to uchar.h file and ICU version

Issue I have tried to follow the tutorials from here to build training tools for Tesseract. I get this error. depbase=`echo boxchar.lo | sed ‘s|[^/]*$|.deps/&|;s|\.lo$||’`;\ /bin/sh ../../libtool –tag=CXX –mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -DNDEBUG -DPANGO_ENABLE_ENGINE -I../../src/api -I../../src/api -I../../src/ccmain -I../../src/ccutil -I../../src/ccstruct

Continue reading

opencv haartraining didnt finish

Issue i use 1292 positive image its for face and 5712 negative image and this my code for harrtraining C:\opencv\build\x64\vc11\bin\opencv_haartraining.exe -data cascades -vec vector/facevector.vec -bg negative/bg.txt -npos 1033 -nneg 5712 -nstages 20 -nsplits 2 -nonsym -minhitrate 0.999 -maxfalsealarm 0.5 -mem

Continue reading

how to plot training error and validation error vs number of epochs?

Issue how to plot training error and validation error vs number of epochs? train_data = generate_arrays_for_training(indexPat, filesPath, end=75) validation_data=generate_arrays_for_training(indexPat, filesPath, start=75) model.fit_generator(generate_arrays_for_training(indexPat, filesPath, end=75), #end=75),#It take the first 75% validation_data=generate_arrays_for_training(indexPat, filesPath, start=75),#start=75), #It take the last 25% #steps_per_epoch=10000, epochs=10) steps_per_epoch=int((len(filesPath)-int(len(filesPath)/100*25))),#*25),

Continue reading

Can we use Keras model's accuracy metric for Image Captioning model?

Issue Kindly consider the following line of code. model.compile(loss=’categorical_crossentropy’, optimizer=’adam’,metrics=[‘accuracy’]) I am allowed to use metrics=[‘accuracy’] for my Image Captioning model. My model has been defined as follows: inputs1 = Input(shape=(2048,)) fe1 = Dropout(0.2)(inputs1) fe1=BatchNormalization()(fe1) fe2 = Dense(256, activation=’relu’)(fe1) inputs2

Continue reading

ValueError: Layer #232 (named "fpn_cells/cell_0/fnode0/add") expects 0 weight(s) , but the saved weights have 1 element(s)

Issue I’ve been trying to train dataset using python train.py –snapshot efficientdet-d0.h5 –phi 0 –gpu 0 –random-transform –compute-val-loss –freeze-backbone –batch-size 4 –steps 100 coco C:/Users/mustafa/Downloads/deneme.v1-1.coco/datasets/coco And I’ve seen this error. Traceback (most recent call last): File “train.py”, line 381, in

Continue reading

ImportError: cannot import name 'device_spec' from 'tensorflow.python.framework'

Issue When i try to run python train.py –logtostderr –train_dir=training/ –pipeline_config_path=training/faster_rcnn_inception_v2_pets.config command this error pops out. (tensorflow1.13) C:\tensorflow1\models\research\object_detection>python train.py –logtostderr –train_dir=training/ –pipeline_config_path=training/faster_rcnn_inception_v2_pets.config Traceback (most recent call last): File "train.py", line 51, in from object_detection.builders import dataset_builder File "C:\tensorflow1\models\research\object_detection\builders\dataset_builder.py", line 33,

Continue reading