Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
43 views

I have problems loading a machine learning model on my Django site

I've build an image classification model that classifies images as one of three classes: cucumber, zucchini, or neither. Now I want to deploy this model to a Django website but I am currently ...
Aske Olesen's user avatar
0 votes
0 answers
49 views

Check failed: ret == 0 (11 vs. 0)Thread tf_Compute creation via pthread_create() failed

When I run keras.load_model and make_predict_function on a Django application that has been deployed on cPanel. An error occurs: Check failed: ret == 0 (11 vs. 0)Thread tf_Compute creation via ...
Solusi Tekno's user avatar
0 votes
1 answer
84 views

UnicodeEncodeError at / 'charmap' codec can't encode characters in position 18-37: character maps to <undefined>

I am trying to execute model.predict(image) in django, but I get an error here i code import keras.api.models from keras.api.preprocessing.image import load_img, img_to_array from keras.api....
Gocthik's user avatar
0 votes
1 answer
40 views

Error in importing latest DeepSpeechModel: CreateModel failed with 'Failed to initialize memory mapped model.' (0x3000)

Thanks for your time checking my post. In my Django project I created an API which is supposed be to trigged in view function where it runs the most recent deepspeech version (DeepSpeech: v0.9.3-0). ...
avakado0's user avatar
  • 115
0 votes
0 answers
42 views

Deploy Tensorflow MoveNet for (near) real-time pose estimation

For a school project we are creating an application that performs pose estimation on children doing physical tests. Children are filmed using tablets. The frames get sent to a server for processing ...
FlorNeufkens's user avatar
0 votes
0 answers
613 views

Could not deserialize class 'Functional'

I did transfer learning to VGG16 model in order to classify images to cat or dog and here is portion of the code snippet: prediction_layer = tf.keras.layers.Dense(1) prediction_batch = ...
Oualid Laib's user avatar
1 vote
1 answer
426 views

How to containerize Streamlit + Django web app?

I’m creating a web app that allows users to use some tensorflow models I’ve created. Nothing new here, streamlit would deal with this perfectly. The problem here is that I want the users to be able to ...
Raul Sofia's user avatar
0 votes
1 answer
391 views

can I use .h5 file in Django project?

I'm making AI web page using Django and tensor flow. and I wonder how I add .h5 file in Django project. writing whole code in views.py file but I want to use pre-trained model not online learning in ...
Gyuyeon Cho's user avatar
0 votes
1 answer
471 views

Django GPU model deployed in Nivdia/Cuda container consumes all GPU memory [duplicate]

I'm using an Nvidia/Cuda container to host my Django website. It's a new deployment of an old website that used to utilize CPU scored models. The rationale for using the Nivida/Cuda docker is to ...
C. Cooney's user avatar
  • 571
0 votes
0 answers
177 views

Why is my Python for loop running out of memory?

I have a for loop in Python/Django to iterate over a long list of users and create recommendations for them using a saved tensorflow model: def create_recommendations_for_users(): user_ids = User....
YPCrumble's user avatar
  • 28.1k
0 votes
1 answer
1k views

I am facing '__init__(): incompatible constructor arguments.' error

I am trying object detection machine learning through Tensorflw; was following a video by Nicholas Renotte. A year old video and while running the trainning module to covert my xml and jpg file into ...
kannasayheydo's user avatar
1 vote
0 answers
124 views

DRF and TensorFlow in Production WSGI. How to load models only once for all requests

I've created an API using the Django Rest Framework. The API uses a model for object classification using TensorFlow. The initial load of TensorFlow (import tensorflow as tf) can take time to ...
MarkK's user avatar
  • 1,058
1 vote
0 answers
193 views

docker- django build image, but don't run in linux server

in my ubuntu computer, I can build image and run with no error but in linux server, when running, it stop at showing notification in red circle, than it is off but doesn't showing any error I try ...
lam vu Nguyen's user avatar
0 votes
2 answers
7k views

TypeError: expected str, bytes or os.PathLike object, not JpegImageFile (or PngImageFile) in Django

When I am uploading a picture to check a picture according to tensorflow h5 model, I am loading the image using load_model of tensorflow.keras.models but it is not accepting. For JPG, it is showing ...
Joyanta J. Mondal's user avatar
0 votes
1 answer
612 views

What is "Type Error: can't pickle weakref objects"

I am trying to pickle.dump() an object with a model property that stores a Keras and TensorFlow model. admin.py def build(self, request, queryset): count = 0 for p in queryset: ...
Muhammad Fayzan's user avatar

15 30 50 per page
1
2 3 4 5 6