rajumgokak
rajumgokak
#Mask_RCNN --your model == keras_model so you cant save the model.save("model.h5") --you can use model.keras_model.save("model.h5") --for weights model.keras_model.load_weights("weights.h5") it will save in logs dir And if your using tensorflow 1.x...
!sudo pip3 install tensorflowjs # Then: !sudo tensorflowjs_converter just replace model.h5 with your trained weight !tensorflowjs_converter --input_format=keras '/content/drive/MyDrive/model.h5' "/content/drive/MyDrive/json" you are good to go your file will me converted !
input using tensorflow #path to your model model_dir="your_path_to_file" model=model_dir+"/model.onnx" #Preprocess the image img=cv2.imread('image_path/img.jpg') img = cv2.resize(img,dsize=(512,512), interpolation=cv2.INTER_AREA) img.resize(1,512,512,3) img = np.array(img).astype('float32') input11 = img input22 = ["your input"] input33 =...