Category : keras

I trying to run on a docker created as follows: docker run –gpus=all -it -p "8888:8888" -v "/home/miguel/ml-resnet-50/:/notebooks/" –name ml-resnet-50 tensorflow/tensorflow:1.5.0-gpu-py3 jupyter notebook –ip 0.0.0.0 –no-browser –allow-root On a Linux PC Ubuntu 20.04 with RTX 3070 Nvidia Card the follow code: model.fit( x=imgs_train, y=clss_train, batch_size=16, epochs=2, verbose=1, validation_data=(imgs_val, clss_val) ) And getting following error: InternalError: ..

Read more

My colleague and I are struggeling with an issue from the Hyperparameter class. On his machine there is no problem. Our code runs fine. But on my machine I have a strange problem with the Hyperparameter class instance. When we build a RandomSearch instance we submit a Tensorflow model. E.g. : def linear_regression( parameter_optimization: kerastuner.HyperParameters, ..

Read more

I have received an unknown error when running airflow. We do install Keras. dockerfile RUN pip install "Keras==2.3.1" RUN pip install "apache-airflow[celery,devel,postgres,redis,s3,ssh]==1.10.9" But we are getting the missing keras.api module. I can’t find keras.api was used anywhere. ml.scheduler_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed ml.scheduler_1 | File "/robo/airflow/dags/general/video_migration.py", line 5, in <module> ml.scheduler_1 ..

Read more

I have received an unknown error when running airflow. We do install Keras. dockerfile RUN pip install "Keras==2.3.1" RUN pip install "apache-airflow[celery,devel,postgres,redis,s3,ssh]==1.10.9" RUN pip install "keras-models==0.0.7" But we are getting the missing keras.api module. I can’t find keras.api was used anywhere. ml.scheduler_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed ml.scheduler_1 | File "/robo/airflow/dags/general/video_migration.py", line ..

Read more

I design a classification model using Python=3.9.5, Keras=2.4.3 and tensorflow-cpu=2.5.0. The model works fine in the Windows development environment, but when I deploy it to server using Docker, FastAPI and uvicorn. It is stuck at random while adding the first layer. Sometime this error occurs on training for 4th time or sometimes it occurs after ..

Read more

Just to start, here is the relevant files for this project: Dockerfile: FROM python:3.8 RUN pip install keras RUN pip install flask EXPOSE 80 COPY . . CMD ["python", "server.py"] docker-compose.yml: version: "2.1" services: web: build: . ports: – "80:80" server.py: from flask import Flask, request import requests from keras.models import load_model import json app ..

Read more