id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_77617031
stackoverflow
MACHINE_LEARNING
Converting HuggingFace Tokenizer to TensorFlow Keras Layer
Converting HuggingFace Tokenizer to TensorFlow Keras Layer I am struggling to understand how to perform inference with a pre-trained HuggingFace model loaded as a TensorFlow Keras model. Context In my case, I am trying to fine-tune a pre-trained DistilBert classifier. I have something as follows to preprocess my data ...
https://stackoverflow.com/questions/77617031/converting-huggingface-tokenizer-to-tensorflow-keras-layer
python, tensorflow, keras, huggingface-transformers
1,701,908,915
se_79536204
stackoverflow
MACHINE_LEARNING
How can I save a model with input shape (1, None, None, 3) with None fixed to 256?
How can I save a model with input shape (1, None, None, 3) with None fixed to 256? I have questions about a model obtained from TensorFlow Hub. I am trying to use "movenet" with the following source code. https://www.kaggle.com/models/google/movenet/tensorFlow2 (1) The Input Shape of this model is (1, None, None, 3), ...
https://stackoverflow.com/questions/79536204/how-can-i-save-a-model-with-input-shape-1-none-none-3-with-none-fixed-to-25
tensorflow, tensorflow-lite, tensorflow-hub, movenet
1,742,987,048
se_79558834
stackoverflow
MACHINE_LEARNING
tuple has no attribute "rank" error when trying to build bayesian neural net
tuple has no attribute "rank" error when trying to build bayesian neural net I'm trying to build a BNN but am encountering the error in the title. I tried to ensure I'm not passing a tuple to .shape.rank by : using the functional API with explicit Input (should make first denseflipout layer see a tensor, no...
https://stackoverflow.com/questions/79558834/tuple-has-no-attribute-rank-error-when-trying-to-build-bayesian-neural-net
python, tensorflow, keras, neural-network, bayesian-networks
1,743,980,366
se_79561611
stackoverflow
MACHINE_LEARNING
Q-values output is NaN in DQN model - input state is normalized and padded
Q-values output is NaN in DQN model - input state is normalized and padded I'm training a Deep Q-Network (DQN) to trade crypto using historical data. My model keeps outputting NaN values for the Q-values during prediction. I'm using a custom function getState2() to generate the state, and the state is then passed into...
https://stackoverflow.com/questions/79561611/q-values-output-is-nan-in-dqn-model-input-state-is-normalized-and-padded
python, tensorflow, keras, deep-learning
1,744,103,185
se_38303974
stackoverflow
MACHINE_LEARNING
tensorflow running error with cublas
tensorflow running error with cublas when I successfully install tensorflow on cluster, I immediately running mnist demo to check if it's going well, but here I came up with a problem. I don't know what is this all about, but it looks like the error is coming from CUDA python3 -m tensorflow.models.image.mnist.convolu...
https://stackoverflow.com/questions/38303974/tensorflow-running-error-with-cublas
gpu, tensorflow, deep-learning, cublas
1,468,230,812
se_79560710
stackoverflow
MACHINE_LEARNING
Getting an error "AttributeError: module 'tensorflow.python.distribute.input_lib' has no attribute 'DistributedDatasetInterface'"
Getting an error "AttributeError: module 'tensorflow.python.distribute.input_lib' has no attribute 'DistributedDatasetInterface'" After running the code train(train_data, EPOCHS) I'm getting error "AttributeError: module 'tensorflow.python.distribute.input_lib' has no attribute 'Distributed...
https://stackoverflow.com/questions/79560710/getting-an-error-attributeerror-module-tensorflow-python-distribute-input-lib
python, tensorflow, keras
1,744,056,665
se_78857269
stackoverflow
MACHINE_LEARNING
add_hparams() function from TensorBoard doesn't work properly
add_hparams() function from TensorBoard doesn't work properly I'm trying to add metrics to this SummaryWriter, but it's not working. I'm using the add_hparams() function of SummaryWriter, the details of which can be found here: https://pytorch.org/docs/stable/tensorboard.html. I'm doing it this way: writer = Summa...
https://stackoverflow.com/questions/78857269/add-hparams-function-from-tensorboard-doesnt-work-properly
python, python-3.x, tensorflow, machine-learning, tensorboard
1,723,335,716
se_59072728
stackoverflow
MACHINE_LEARNING
What is the rule to know how many LSTM cells and how many units in each LSTM cell do you need in Keras?
What is the rule to know how many LSTM cells and how many units in each LSTM cell do you need in Keras? I know that a LSTM cell has a number of ANNs inside. But when defining the hidden layer for the same problem, I have seen some people using only 1 LSTM cell and others use 2, 3 LSTM cells like this - model = Seq...
https://stackoverflow.com/questions/59072728/what-is-the-rule-to-know-how-many-lstm-cells-and-how-many-units-in-each-lstm-cel
python, tensorflow, keras, lstm, recurrent-neural-network
1,574,865,911
se_79560295
stackoverflow
MACHINE_LEARNING
Getting reproducible results in keras
Getting reproducible results in keras I am currently running my CNN model using Keras, but the problem is that in each run, there are inconsistencies in the result (non-deterministic). I tried these, but the problem is that it is computationally expensive. Are there any ways to balance the tradeoff between speed and a...
https://stackoverflow.com/questions/79560295/getting-reproducible-results-in-keras
tensorflow, keras
1,744,040,598
se_57048362
stackoverflow
MACHINE_LEARNING
Keras: Multiple outputs, loss only a function of one?
Keras: Multiple outputs, loss only a function of one? I have a setup like this: model = keras.Model(input,[output1,output2]) My loss function is only a function of output1. How do I tell Keras to ignore output2 for the purposes of computing loss? The best I have come up with is to generate a bogus loss function wh...
https://stackoverflow.com/questions/57048362/keras-multiple-outputs-loss-only-a-function-of-one
tensorflow, keras
1,563,234,203
se_41585866
stackoverflow
MACHINE_LEARNING
How to install Tensorflow for R
How to install Tensorflow for R I had Tensorflow installed with Anaconda. Now I want use it in R and I need to reinstall Tensorflow, because the note here NOTE: You should NOT install TensorFlow with Anaconda as there are issues with the way Anaconda builds the python shared library that prevent dynamic link...
https://stackoverflow.com/questions/41585866/how-to-install-tensorflow-for-r
r, tensorflow, installation, anaconda
1,484,122,984
se_45516859
stackoverflow
MACHINE_LEARNING
Differences between OpenCV image processing and tf.image processing
Differences between OpenCV image processing and tf.image processing I recently switched out using OpenCV for Tensorflow's tf.image module for image processing. However, my validation accuracy dropped around 10%. I believe the issue is related to cv2.imread() vs. tf.image.decode_jpeg() cv2.resize() vs. tf.image.resize...
https://stackoverflow.com/questions/45516859/differences-between-opencv-image-processing-and-tf-image-processing
python, image, tensorflow, opencv, image-processing
1,501,890,025
se_79487152
stackoverflow
MACHINE_LEARNING
MobileNetV3-Large TFLite Model Works in Notebook But Always Predicts the Same Class in Flutter App
MobileNetV3-Large TFLite Model Works in Notebook But Always Predicts the Same Class in Flutter App I trained a 46-class image classification model using MobileNetV3-Large with TensorFlow/Keras and saved it as a .keras model. I converted it to TFLite using tf.lite.TFLiteConverter.from_keras_model() When testing the TFL...
https://stackoverflow.com/questions/79487152/mobilenetv3-large-tflite-model-works-in-notebook-but-always-predicts-the-same-cl
python, flutter, tensorflow, keras, mobilenet
1,741,193,338
se_79557330
stackoverflow
MACHINE_LEARNING
how can i fix a problem regarding problem regarding 'L1Dist.call()'
how can i fix a problem regarding problem regarding 'L1Dist.call()' class L1Dist(Layer): def __init__(self, **kwargs): super().__init__() def call(self, input_embedding, validation_img): return tf.math.abs(input_embedding - validation_img) Signature of method 'L1Dist.call()' does not ...
https://stackoverflow.com/questions/79557330/how-can-i-fix-a-problem-regarding-problem-regarding-l1dist-call
python, tensorflow
1,743,875,867
se_58562089
stackoverflow
MACHINE_LEARNING
Why is ImageDataGenerator() performing poorly?
Why is ImageDataGenerator() performing poorly? I am trying to build a image classification model, using ImageDataGenerator(). It seems that the model trains and performs poorly. The training loss stays at around 15 and the accuracy is barely 10%, the validation is about the same. Just to see what would happen, I tri...
https://stackoverflow.com/questions/58562089/why-is-imagedatagenerator-performing-poorly
tensorflow, machine-learning, keras
1,572,019,515
se_79546777
stackoverflow
MACHINE_LEARNING
Saving and Loading Images for Tensorflow Lite
Saving and Loading Images for Tensorflow Lite Planning on using Tensorflow Lite for image classification. To test the model, using Fashion-MNIST database to create the model following a Tensorflow basic example from their website. Created and saved the model and want to test it in TF Lite. I want to save an image from...
https://stackoverflow.com/questions/79546777/saving-and-loading-images-for-tensorflow-lite
python, tensorflow, deep-learning, python-imaging-library, tensorflow-lite
1,743,438,821
se_79555794
stackoverflow
MACHINE_LEARNING
Issues with Tensorflow and Tensorflow-io while training a CNN on Colab
Issues with Tensorflow and Tensorflow-io while training a CNN on Colab I have been training some CNNs on Colab by Tensorflow and Tensorflow-io since January. The training of a model lasted more or less 30 mins till a couple of months ago. Now, since some weeks ago, after the importing of the latest versions of Tf and ...
https://stackoverflow.com/questions/79555794/issues-with-tensorflow-and-tensorflow-io-while-training-a-cnn-on-colab
python, tensorflow, deep-learning, google-colaboratory, tensorflow-io
1,743,781,938
se_34982492
stackoverflow
MACHINE_LEARNING
Restoring TensorFlow model
Restoring TensorFlow model I'm trying to restore TensorFlow model. I followed this example: http://nasdag.github.io/blog/2016/01/19/classifying-bees-with-google-tensorflow/ At the end of the code in the example I added these lines: saver = tf.train.Saver() save_path = saver.save(sess, "model.ckpt") print("Model save...
https://stackoverflow.com/questions/34982492/restoring-tensorflow-model
python, tensorflow
1,453,675,531
se_45160402
stackoverflow
MACHINE_LEARNING
Multiple artificial neural networks
Multiple artificial neural networks I am trying to set up a Multiple Artificial Neural Network as you can see here on image (a): (source) I want that each of the networks work independently on its own domain. The single networks must be built and trained for their specific task. The final decision will be make on the...
https://stackoverflow.com/questions/45160402/multiple-artificial-neural-networks
python, machine-learning, tensorflow
1,500,363,427
se_79555912
stackoverflow
MACHINE_LEARNING
Installing tflite-runtime in Raspberry Pi
Installing tflite-runtime in Raspberry Pi Trying to install tflite-runtime in Raspberry Pi Zero but no success. Installed tflite without any issue, and even check if tflite-runtime is in pypi.org/simple, which it is. This is the errors I get: (env) pi@raspberrypi:~ $ pip install tflite Looking in indexes: https://pypi...
https://stackoverflow.com/questions/79555912/installing-tflite-runtime-in-raspberry-pi
tensorflow, tflite, raspberry-pi-zero
1,743,785,966
se_79553837
stackoverflow
MACHINE_LEARNING
Tensorflow Lite vs tflite
Tensorflow Lite vs tflite My understanding is that tflite was developed to avoid installing the full package of Tensorflow in embedded system such Raspberry Pi, saving processing and power resources. Following the directions from https://pypi.org/project/tflite/, the documentation is linked to https://ai.google.dev/ed...
https://stackoverflow.com/questions/79553837/tensorflow-lite-vs-tflite
tensorflow, raspberry-pi, tensorflow-lite
1,743,708,716
se_38527722
stackoverflow
MACHINE_LEARNING
Tensorflow: How to convert NaNs to a number?
Tensorflow: How to convert NaNs to a number? I'm trying to calculate the entropy of the weights while training my graph and to use it for regularization. This of course involves w*tf.log(w), and as my weights are changing some of them are bound to get into a region which results in NaNs being returned. Ideally I woul...
https://stackoverflow.com/questions/38527722/tensorflow-how-to-convert-nans-to-a-number
python, tensorflow, nan
1,469,194,134
se_79552254
stackoverflow
MACHINE_LEARNING
How to compile and run a model in Keras subclassing API?
How to compile and run a model in Keras subclassing API? I am learning to use the TensorFlow Recommenders library and the subclassing API and have been working through the documentation. I would like to know how to run and review the output of the individual sub-models that feed into the final model. I have recreated ...
https://stackoverflow.com/questions/79552254/how-to-compile-and-run-a-model-in-keras-subclassing-api
python, tensorflow, machine-learning, keras
1,743,664,779
se_76594132
stackoverflow
MACHINE_LEARNING
Tensorflow 2.0 is not detecting my GPU and pip install tensorflow-gpu won't work (legacy-install-failure)
Tensorflow 2.0 is not detecting my GPU and pip install tensorflow-gpu won't work (legacy-install-failure) My GPU is not getting detected by Tensorflow. I installed the package using pip3 install tensorflow and wrote this script: import tensorflow as tf print(tf.__version__) # 2.13.0-rc2 print(tf.config.list_phys...
https://stackoverflow.com/questions/76594132/tensorflow-2-0-is-not-detecting-my-gpu-and-pip-install-tensorflow-gpu-wont-work
python, tensorflow, gpu
1,688,205,365
se_79551206
stackoverflow
MACHINE_LEARNING
ValueError: Unknown layer: 'TensorFlowOpLayer'. Please ensure you are using a keras.utils.custom_object_scope and that this object is included in the
ValueError: Unknown layer: 'TensorFlowOpLayer'. Please ensure you are using a keras.utils.custom_object_scope and that this object is included in the import numpy as np import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense, Concatenate, add, multiply from t...
https://stackoverflow.com/questions/79551206/valueerror-unknown-layer-tensorflowoplayer-please-ensure-you-are-using-a-ke
python, tensorflow, keras
1,743,614,862
se_76196362
stackoverflow
MACHINE_LEARNING
I am trying to make an object detection app on flutter but it keeps crashing as soon as i press the button to open camera
I am trying to make an object detection app on flutter but it keeps crashing as soon as i press the button to open camera I have been trying to make a flutter app which detects objects and puts bounding boxes around them. First when i got the camera feed it was working fine but when i loaded the model and tried to run...
https://stackoverflow.com/questions/76196362/i-am-trying-to-make-an-object-detection-app-on-flutter-but-it-keeps-crashing-as
flutter, dart, tensorflow, object-detection, tensorflow-lite
1,683,494,748
se_44716150
stackoverflow
MACHINE_LEARNING
How can I assign a class_weight in Keras in a simple way?
How can I assign a class_weight in Keras in a simple way? Can anyone tell me what is the simplest way to apply class_weight in Keras when the dataset is unbalanced please? I only have two classes in my target. Thanks.
https://stackoverflow.com/questions/44716150/how-can-i-assign-a-class-weight-in-keras-in-a-simple-way
python, tensorflow, deep-learning, keras
1,498,204,948
se_79550725
stackoverflow
MACHINE_LEARNING
ERROR TypeError: Cannot read property 'back' of undefined [Component Stack]
ERROR TypeError: Cannot read property 'back' of undefined [Component Stack] Error on this line of code import '@tensorflow/tfjs-react-native'; **(NOBRIDGE) ERROR TypeError: Cannot read property 'back' of undefined **[Component Stack]
https://stackoverflow.com/questions/79550725/error-typeerror-cannot-read-property-back-of-undefined-component-stack
react-native, tensorflow, expo
1,743,599,475
se_79547515
stackoverflow
MACHINE_LEARNING
AttributeError When Updating Learning Rate in Keras Using K.set_value
AttributeError When Updating Learning Rate in Keras Using K.set_value I'm trying to update the learning rate of my Keras model dynamically during training. I'm using the following code: import tensorflow as tf from tensorflow.keras import backend as K model = keras.models.Sequential([keras.layers.Dense(10)]) model.co...
https://stackoverflow.com/questions/79547515/attributeerror-when-updating-learning-rate-in-keras-using-k-set-value
python, tensorflow, keras, learning-rate
1,743,468,794
se_73830782
stackoverflow
MACHINE_LEARNING
How to convert bert model output to json?
How to convert bert model output to json? I have fine-tuned a Bert model and testing my output from different layers. I tested this in sagemaker , with my own custom script (see below) and the output i get is of BaseModelOutputWithPoolingAndCrossAttentions class. How can i convert the output of this , specially the te...
https://stackoverflow.com/questions/73830782/how-to-convert-bert-model-output-to-json
python, json, tensorflow, amazon-sagemaker, bert-language-model
1,663,951,602
se_64337550
stackoverflow
MACHINE_LEARNING
Neither PyTorch nor TensorFlow >= 2.0 have been found.Models won't be available and only tokenizers, configuration and file/data utilities can be used
Neither PyTorch nor TensorFlow >= 2.0 have been found.Models won't be available and only tokenizers, configuration and file/data utilities can be used I am trying to install transformers using pip pip install transformers after import transformers this error show Neither PyTorch nor TensorFlow >= 2.0 have been...
https://stackoverflow.com/questions/64337550/neither-pytorch-nor-tensorflow-2-0-have-been-found-models-wont-be-available
python, tensorflow, nlp
1,602,600,570
se_76248184
stackoverflow
MACHINE_LEARNING
Keras tuning that prefers faster models?
Keras tuning that prefers faster models? I'm trying to tune hyperparameters to get a sense of what values are best in tensorflow keras models. I'm going to use the best model in a minimax algorithm, so speed of evaluation is important due to the amount of estimations for the algorithm. Also, the speed of tuning is mad...
https://stackoverflow.com/questions/76248184/keras-tuning-that-prefers-faster-models
python, tensorflow, machine-learning, keras, deep-learning
1,684,076,869
se_79543125
stackoverflow
MACHINE_LEARNING
TensorFlow Installation Fails on Python 3.12: Compatibility Issues with Python Versions
TensorFlow Installation Fails on Python 3.12: Compatibility Issues with Python Versions I'm trying to install TensorFlow , but I keep encountering installation issues due to Python version compatibility. I’m using Python 3.12, but I get an error message indicating that TensorFlow doesn’t support Python 3.12, and sever...
https://stackoverflow.com/questions/79543125/tensorflow-installation-fails-on-python-3-12-compatibility-issues-with-python-v
tensorflow, installation, conda, python-3.12
1,743,245,693
se_48288839
stackoverflow
MACHINE_LEARNING
tensorflow cannot import name container_types
tensorflow cannot import name container_types I've just compiled tensorflow from source code with GPU support on OSX. This was with a few hick-ups and hacks along the way: based on this issue I've checkout commit 49dcb6c769d60206eb845eb249fa3ef6bc333457 from the 24th of August 2017 (to get past the XLA namespace re...
https://stackoverflow.com/questions/48288839/tensorflow-cannot-import-name-container-types
python, macos, tensorflow, build
1,516,132,388
se_75503580
stackoverflow
MACHINE_LEARNING
Image classification Using CNN
Image classification Using CNN I am working on breast cancer classification. I found this online code to train my pre-processed outputs on it. The results was awful but I didn't understand the code, I want to train my own model but I don't how to replace my own code with this one. Any help would be appreciated. in_mod...
https://stackoverflow.com/questions/75503580/image-classification-using-cnn
python, tensorflow, keras, conv-neural-network, image-classification
1,676,842,045
se_55318273
stackoverflow
MACHINE_LEARNING
Tensorflow._api.v2.train has no attribute 'AdamOptimizer'
Tensorflow._api.v2.train has no attribute 'AdamOptimizer' When using model.compile(optimizer = tf.train.AdamOptimizer(), loss = 'sparse_categorical_crossentropy', metrics=['accuracy']) in my Jupyter Notebook the following Error pops up: module 'tensorflow._api.v2.train' has no ...
https://stackoverflow.com/questions/55318273/tensorflow-api-v2-train-has-no-attribute-adamoptimizer
python, tensorflow
1,553,374,458
se_79363695
stackoverflow
MACHINE_LEARNING
deploying a Tensorflow model artifact to Sagemaker
deploying a Tensorflow model artifact to Sagemaker I am trying to deploy a TensorFlow model to a Sagemaker endpoint. I have the model artifact at generic_graph.pb and the model's labels at labels.txt. I started by creating a tar file with the following contents: # #model directory structure # #model.tar.gz # └── <mod...
https://stackoverflow.com/questions/79363695/deploying-a-tensorflow-model-artifact-to-sagemaker
amazon-web-services, tensorflow, machine-learning, amazon-sagemaker
1,737,091,156
se_79545147
stackoverflow
MACHINE_LEARNING
Keras EfficientNet model not working at all
Keras EfficientNet model not working at all I have built model basing on udemy training. I use PyCharm instead of Jupyter. I trained below model and always results are like below, does not matter which efficientnet model is picked up, no matter how many epochs, 1, 10, 20. All images are predicted sad: 🔍 VALIDATION RE...
https://stackoverflow.com/questions/79545147/keras-efficientnet-model-not-working-at-all
tensorflow, keras
1,743,367,933
se_41442687
stackoverflow
MACHINE_LEARNING
Does make sense use dynamic learning rate in AdamOptimizer?
Does make sense use dynamic learning rate in AdamOptimizer? I'm dvelopping a convolutional neural network for images recognition based on three own classes. I built an AlexNet-based model to train. I'd like to know two things: AdamOptimizer performs a learning rate decay internally (from a fixed given value) or not ...
https://stackoverflow.com/questions/41442687/does-make-sense-use-dynamic-learning-rate-in-adamoptimizer
tensorflow, deep-learning
1,483,443,580
se_47299624
stackoverflow
MACHINE_LEARNING
How to understand loss, acc, val_loss, val_acc in Keras model fitting?
How to understand loss, acc, val_loss, val_acc in Keras model fitting? Here are my Keras model results (train on 4160 samples, validate on 1040 samples): Epoch 1/20 4160/4160 - loss: 3.3455 - acc: 0.1560 - val_loss: 1.6047 - val_acc: 0.4721 Epoch 2/20 4160/4160 - loss: 1.7639 - acc: 0.4274 - val_loss: 0.7060 - val_ac...
https://stackoverflow.com/questions/47299624/how-to-understand-loss-acc-val-loss-val-acc-in-keras-model-fitting
tensorflow, machine-learning, keras, deep-learning
1,510,721,765
se_72094542
stackoverflow
MACHINE_LEARNING
ran into TensorFlow ValueError during my TensorFlow Course with Udemy
ran into TensorFlow ValueError during my TensorFlow Course with Udemy I have being trying to fit the error during my Tensorflow course (Section 3: Neural network Regression with Tensorflow) with Udemy. import tensorflow as tf import numpy as np X = np.array([-8.0, -5.0, -2.0, 1.0, 4.0, 7.0, 10.0, 13.0]) y = np.array(...
https://stackoverflow.com/questions/72094542/ran-into-tensorflow-valueerror-during-my-tensorflow-course-with-udemy
tensorflow, keras, deep-learning, neural-network
1,651,548,349
se_79540861
stackoverflow
MACHINE_LEARNING
can&#39;t load the saved model YOLOV8Backbone from keras_cv after thefine-tuning
can&#39;t load the saved model YOLOV8Backbone from keras_cv after thefine-tuning checkpoint_filepath='E:\model.yolo_v8_s_ft.h5' # backbone = keras_cv.models.YOLOV8Backbone.from_preset("yolo_v8_m_backbone_coco") backbone = keras.models.load_model(checkpoint_filepath) yolo = keras_cv.models.YOLOV8Detector( num_cl...
https://stackoverflow.com/questions/79540861/cant-load-the-saved-model-yolov8backbone-from-keras-cv-after-thefine-tuning
python, tensorflow, keras, neural-network, keras-cv
1,743,149,832
se_73776335
stackoverflow
MACHINE_LEARNING
How to convert image in fast fourier transform signal?
How to convert image in fast fourier transform signal? I am trying to convert image into fast fourier transform signal and used the following peace of code: fake_A1 = tf.signal.fft2d(fake_A1) where input image type is: <class 'numpy.ndarray'> but I am getting following error: tensorflow.python.framework.errors_impl.I...
https://stackoverflow.com/questions/73776335/how-to-convert-image-in-fast-fourier-transform-signal
python, tensorflow, keras
1,663,603,792
se_59372863
stackoverflow
MACHINE_LEARNING
Error Importing TensorFlow: Failed to load the native tensorflow runtime
Error Importing TensorFlow: Failed to load the native tensorflow runtime I was trying to install tensorflow with pip and it was successful. I have seen other answers but I don't understand them. But when I tried to import tensorflow the following error showed up: Traceback (most recent call last): File "C:\Users\D...
https://stackoverflow.com/questions/59372863/error-importing-tensorflow-failed-to-load-the-native-tensorflow-runtime
python, tensorflow
1,576,580,557
se_79532719
stackoverflow
MACHINE_LEARNING
My Google Colab GPU refuses to work. It gets connected and also shows that it&#39;s connected, but when I train or run anything, my system RAM gets used
My Google Colab GPU refuses to work. It gets connected and also shows that it&#39;s connected, but when I train or run anything, my system RAM gets used My Google Colab GPU doesn't get used even when I am connected to it. I'm trying to run a PyTorch model on Google Colab using the free GPU, but it seems that my code i...
https://stackoverflow.com/questions/79532719/my-google-colab-gpu-refuses-to-work-it-gets-connected-and-also-shows-that-its
tensorflow, pytorch, gpu, google-colaboratory
1,742,877,992
se_79537679
stackoverflow
MACHINE_LEARNING
Why is tensorflow not recognizing my gpu after installing it with anaconda
Why is tensorflow not recognizing my gpu after installing it with anaconda So im trying to use tensorflow with my yolov8 project but for some reason it is not recognizing my gpu. I had originally installed it using pip but i was told i should use conda instead, so i switched to that but still no luck import tensorflow...
https://stackoverflow.com/questions/79537679/why-is-tensorflow-not-recognizing-my-gpu-after-installing-it-with-anaconda
python, tensorflow, anaconda, gpu, nvidia
1,743,041,868
se_78418499
stackoverflow
MACHINE_LEARNING
Using tensorflow with GPU on Docker on Ubuntu
Using tensorflow with GPU on Docker on Ubuntu I've been struggling to the problem written below for many days and would like you to help me. What I want to do is to use tensorflow with GPU on Docker on Ubuntu. My GPU is GeForce GTX 1070, and my OS is Ubuntu 22.04.3 LTS I've installed Docker $ docker --version Docker ...
https://stackoverflow.com/questions/78418499/using-tensorflow-with-gpu-on-docker-on-ubuntu
docker, tensorflow, ubuntu, cuda
1,714,645,626
se_37863377
stackoverflow
MACHINE_LEARNING
Can I installed tensorflow for python 2.7 and 3.5 on my machine simultaneously?
Can I installed tensorflow for python 2.7 and 3.5 on my machine simultaneously? Currently I have Python 2.7, Python 3.5, Tensorflow for Python 3.5 installed on my machine (MAC OX) via Anaconda. I would like to install Tensorflow for Python 2.7 on my machine as well. When I tried "conda create -n tensorflow python=2...
https://stackoverflow.com/questions/37863377/can-i-installed-tensorflow-for-python-2-7-and-3-5-on-my-machine-simultaneously
python-2.7, python-3.x, installation, tensorflow, anaconda
1,466,090,724
se_79536194
stackoverflow
MACHINE_LEARNING
Jupyter | The kernel appears to have died. It will restart automatically | keras.models.Sequential
Jupyter | The kernel appears to have died. It will restart automatically | keras.models.Sequential I am building my deep learning model using Sequential model, while I am executing the model.fit my jupyter notebook dies with message The kernel appears to have died. It will restart automatically. model_class = tf.keras...
https://stackoverflow.com/questions/79536194/jupyter-the-kernel-appears-to-have-died-it-will-restart-automatically-keras
tensorflow, machine-learning, jupyter-notebook
1,742,986,623
se_79536449
stackoverflow
MACHINE_LEARNING
Tensorflow: Model out of memory - preallocated temp allocation extremely large
Tensorflow: Model out of memory - preallocated temp allocation extremely large I am trying to reduce the memory requirements of a model I am working with. The model, which I cannot share in its entirety, is not large, only about 600k parameters. The main part consists of two time-convolutional neural networks (running...
https://stackoverflow.com/questions/79536449/tensorflow-model-out-of-memory-preallocated-temp-allocation-extremely-large
tensorflow, out-of-memory, recurrent-neural-network
1,742,992,915
se_71335585
stackoverflow
MACHINE_LEARNING
HuggingFace | ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet con
HuggingFace | ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet con Not always, but occasionally when running my code this error appears. At first, I doubted it was a connectivity issue but to do with cashing issue, as discussed on an o...
https://stackoverflow.com/questions/71335585/huggingface-valueerror-connection-error-and-we-cannot-find-the-requested-fil
python-3.x, tensorflow, huggingface-transformers, valueerror, gpt-2
1,646,303,304
se_45349950
stackoverflow
MACHINE_LEARNING
Why do I get a low accuracy in this neural network?
Why do I get a low accuracy in this neural network? I have made a convolutional neural network with tensorflow, i've trained it and tested it (about 98% accuracy)... I saved the model with saver = tf.train.Saver() saver.save(sess, 'model.ckpt') Then i restored with the saver, but i always get an accuracy lower tha...
https://stackoverflow.com/questions/45349950/why-do-i-get-a-low-accuracy-in-this-neural-network
python-3.x, image-processing, tensorflow, deep-learning
1,501,156,138
se_65777704
stackoverflow
MACHINE_LEARNING
Getting a very low accuracy with Neural Network
Getting a very low accuracy with Neural Network I am trying to implement ANN on a Cifar-10 dataset using keras but for some reason I dont know I am getting only 10% accuracy ? I have used 5 hidden layers iwth 8,16,32,64,128 neurons respectively. This is the link to the jupyter notebook model = Sequential() model.add(D...
https://stackoverflow.com/questions/65777704/getting-a-very-low-accuracy-with-neural-network
python, tensorflow, machine-learning, keras, neural-network
1,610,984,686
se_73780627
stackoverflow
MACHINE_LEARNING
Neural network low accuracy
Neural network low accuracy The model is getting really low accuracy. This is my first time writing a neural network so I dont really know how to make it better import tensorflow as tf import matplotlib.pyplot as plt #data set data = tf.keras.datasets.cifar10 (x_train, y_train), (x_test, y_test) = data.load_dat...
https://stackoverflow.com/questions/73780627/neural-network-low-accuracy
python, tensorflow, machine-learning, keras
1,663,635,584
se_42613747
stackoverflow
MACHINE_LEARNING
Tensorflow splitting training data to batches
Tensorflow splitting training data to batches I have a dataset of images as a Numpy array. (Number of images, length, width, colour range) I would like to split it to batches and feed to tensorflow. What is the good way to do it?
https://stackoverflow.com/questions/42613747/tensorflow-splitting-training-data-to-batches
python, numpy, image, tensorflow
1,488,746,654
se_40069883
stackoverflow
MACHINE_LEARNING
How to set specific gpu in tensorflow?
How to set specific gpu in tensorflow? I want to specify the gpu to run my process. And I set it as follows: import tensorflow as tf with tf.device('/gpu:0'): a = tf.constant(3.0) with tf.Session() as sess: while True: print sess.run(a) However it still allocate memory in both my two gpus. | 0 ...
https://stackoverflow.com/questions/40069883/how-to-set-specific-gpu-in-tensorflow
tensorflow
1,476,618,478
se_69255861
stackoverflow
MACHINE_LEARNING
tensorflow: Could not load dynamic library &#39;cudart64_110.dll&#39;; dlerror: cudart64_110.dll not found
tensorflow: Could not load dynamic library &#39;cudart64_110.dll&#39;; dlerror: cudart64_110.dll not found So im trying to do some machine learning, and i want to make use of my gpu. Im on tensorflow version 2.6.0(i also tried tensorflow-gpu).I installed CUDA 11.2 and cuDNN 8.1. Added everything to PATH like it says h...
https://stackoverflow.com/questions/69255861/tensorflow-could-not-load-dynamic-library-cudart64-110-dll-dlerror-cudart64
python, tensorflow, nvidia
1,632,146,920
se_54665842
stackoverflow
MACHINE_LEARNING
When importing tensorflow, I get the following error: No module named &#39;numpy.core._multiarray_umath&#39;
When importing tensorflow, I get the following error: No module named &#39;numpy.core._multiarray_umath&#39; I have installed Ancaconda3 and Tensorflow. When I try to import Tensorflow in python shell I receive the following error: ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy...
https://stackoverflow.com/questions/54665842/when-importing-tensorflow-i-get-the-following-error-no-module-named-numpy-cor
python-3.x, numpy, tensorflow, anaconda
1,550,047,420
se_51422776
stackoverflow
MACHINE_LEARNING
How do i add ctc beam search decoder in crnn model (pytorch)
How do i add ctc beam search decoder in crnn model (pytorch) I am following the CRNN implementation of https://github.com/meijieru/crnn.pytorch, but seems like it is not using beam search for decoding the words. Can someone tell me how to add beam search decoding in the same model? At the same time in Tensorflow, ther...
https://stackoverflow.com/questions/51422776/how-do-i-add-ctc-beam-search-decoder-in-crnn-model-pytorch
tensorflow, deep-learning, ocr, speech-recognition, pytorch
1,532,003,469
se_51580751
stackoverflow
MACHINE_LEARNING
How does tf.nn.ctc_greedy_decoder generates output sequences in tensorflow?
How does tf.nn.ctc_greedy_decoder generates output sequences in tensorflow? Given the logits (output from the RNN/Lstm/Gru in time major format i.e. (maxTime, batchSize, numberofClasses)), how does ctc greedy decoder performs decoding to generate output sequence. I found this "Performs greedy decoding on the logits ...
https://stackoverflow.com/questions/51580751/how-does-tf-nn-ctc-greedy-decoder-generates-output-sequences-in-tensorflow
python, tensorflow
1,532,870,728
se_53256877
stackoverflow
MACHINE_LEARNING
How to convert keras(h5) file to a tflite file?
How to convert keras(h5) file to a tflite file? I got an keras(h5) file. I need to convert it to tflite?? I researched, First i need to go via h5 -> pb -> tflite (because h5 - tflite sometimes results in some issue)
https://stackoverflow.com/questions/53256877/how-to-convert-kerash5-file-to-a-tflite-file
python, tensorflow, machine-learning, keras
1,542,003,931
se_79042776
stackoverflow
MACHINE_LEARNING
Trouble creating a dataset from h5 file
Trouble creating a dataset from h5 file I'm having a problem regarding the h5 file. Whenever I try to load it I get this error: OSError: Can't read data (can't open directory: /opt/conda/envs/AE4353/lib/hdf5/plugin) I can read the file without any problem, I'm providing the right path and I have everything I need ins...
https://stackoverflow.com/questions/79042776/trouble-creating-a-dataset-from-h5-file
python, python-3.x, tensorflow, dataset
1,727,779,714
se_65461750
stackoverflow
MACHINE_LEARNING
tensorflow.python.framework.errors_impl.UnknownError: Failed to rename; : Access is denied. ; Input/output error
tensorflow.python.framework.errors_impl.UnknownError: Failed to rename; : Access is denied. ; Input/output error I am not able to download and load tensorflow dataset on my Windows 10 machine. It works okay on Google colab. Can someone please help me? Code: import tensorflow_datasets as tfds datasets, info = tfds.loa...
https://stackoverflow.com/questions/65461750/tensorflow-python-framework-errors-impl-unknownerror-failed-to-rename-access
python, tensorflow, tensorflow2.x
1,609,026,430
se_61688767
stackoverflow
MACHINE_LEARNING
how does validation_split work in training a neural network model?
how does validation_split work in training a neural network model? model.fit(X_train, y_train, validation_data=(X_test, y_test), epochs=10, verbose=2) in the above line of code model is a sequential keras model having layers and is compiled. what is the use of the parameter validaiton_data. the model is go...
https://stackoverflow.com/questions/61688767/how-does-validation-split-work-in-training-a-neural-network-model
tensorflow, keras, deep-learning, neural-network
1,588,975,102
se_45504710
stackoverflow
MACHINE_LEARNING
dropout with relu activations
dropout with relu activations I am trying to implement a neural network with dropout in tensorflow. tf.layers.dropout(inputs, rate, training) From the documentation: Dropout consists in randomly setting a fraction rate of input units to 0 at each update during training time, which helps prevent overfitting. The unit...
https://stackoverflow.com/questions/45504710/dropout-with-relu-activations
tensorflow, machine-learning, neural-network, activation-function, dropout
1,501,843,285
se_79455291
stackoverflow
MACHINE_LEARNING
Tensorflow model training, List to numpy array conversion unevenly changes the shape of data
Tensorflow model training, List to numpy array conversion unevenly changes the shape of data I am trying to predict LSDC from MRI images. For each study_id there are multiple images. Each study_id represents each patient. I want to predict 3 level of severity for 5 conditions on 5 levels. I am trying to create dataset...
https://stackoverflow.com/questions/79455291/tensorflow-model-training-list-to-numpy-array-conversion-unevenly-changes-the-s
python, numpy, tensorflow, machine-learning, data-generation
1,740,070,974
se_60393573
stackoverflow
MACHINE_LEARNING
Classification Neural Network does not learn
Classification Neural Network does not learn I am building a classification Neural Network in order to classify two different classes. So it is a binary classification problem, I am trying to solve this task by using a feedforward neural network. But the network is not able to learn, in fact, the accuracy never change...
https://stackoverflow.com/questions/60393573/classification-neural-network-does-not-learn
python, tensorflow, machine-learning, keras, neural-network
1,582,630,095
se_68839526
stackoverflow
MACHINE_LEARNING
Different accuracy on google colab
Different accuracy on google colab I have this CNN: def cnn(trainImages, trainLabels, testImages, testLabels): trainImages = np.array(trainImages) trainLabels = np.array(trainLabels) testImages = np.array(testImages) testLabels = np.array(testLabels) trainImages = trainImages / 255 testImages ...
https://stackoverflow.com/questions/68839526/different-accuracy-on-google-colab
python, tensorflow, deep-learning, conv-neural-network, google-colaboratory
1,629,322,012
se_79516764
stackoverflow
MACHINE_LEARNING
Error when trying to replicate GPflow&#39;s Stochastic Variational Inference for Scalability SVGP notebook
Error when trying to replicate GPflow&#39;s Stochastic Variational Inference for Scalability SVGP notebook I'm learning about Gaussian processes and I'm using GPflow to do some exercises and tests. I was studying the notebook of Stochastic Variational Inference for scalability with SVGP (https://gpflow.github.io/GPflo...
https://stackoverflow.com/questions/79516764/error-when-trying-to-replicate-gpflows-stochastic-variational-inference-for-sca
python, tensorflow, gpflow
1,742,286,122
se_79520746
stackoverflow
MACHINE_LEARNING
implement a differentiable L0 regularizer to keras layer
implement a differentiable L0 regularizer to keras layer What is the appropriate way to implement a differentiable variant of L0 regularizer (count the non-zero values in a Conv layer / matrix) to keras layer? I was thinking of using r(x) = tanh(abs(f*x)) for x the matrix, where f is some factor that scales the range ...
https://stackoverflow.com/questions/79520746/implement-a-differentiable-l0-regularizer-to-keras-layer
python, tensorflow, keras, neural-network, loss-function
1,742,400,052
se_57099613
stackoverflow
MACHINE_LEARNING
How is teacher-forcing implemented for the Transformer training?
How is teacher-forcing implemented for the Transformer training? In this part of Tensorflow's tutorial, they mentioned that they are training with teacher-forcing. To my knowledge, teacher-forcing involves feeding the target output into the model so that it converges faster. So I'm curious as to how this is done here?...
https://stackoverflow.com/questions/57099613/how-is-teacher-forcing-implemented-for-the-transformer-training
tensorflow, machine-learning, nlp, transformer-model
1,563,469,945
se_78670807
stackoverflow
MACHINE_LEARNING
model.fit() throwing errors with zipped Datasets
model.fit() throwing errors with zipped Datasets I am working on a segmentation model and using ImageDataGenerator() to load and augment images and their masks. I am returning them as a zipped object def create_segmentation_generator_train(img_path, msk_path, BATCH_SIZE): data_gen_args = #augmentation code dat...
https://stackoverflow.com/questions/78670807/model-fit-throwing-errors-with-zipped-datasets
python, tensorflow, keras, error-handling
1,719,386,000
se_71756446
stackoverflow
MACHINE_LEARNING
Fixing memory leak in tensorflow2 during loading the model
Fixing memory leak in tensorflow2 during loading the model I am new to tensorflow-2 and I am experiencing a memory leak in my object detection application. I was able to track the section which causes the issue. class TensorflowObjectDetector: def __init__(self, saved_model_dir: str): def detection_engin...
https://stackoverflow.com/questions/71756446/fixing-memory-leak-in-tensorflow2-during-loading-the-model
python, tensorflow, tensorflow2.0, object-detection, tf.keras
1,649,181,813
se_60784634
stackoverflow
MACHINE_LEARNING
How to implement Multi label classification with train, validation and test images with Densenet/ResNet
How to implement Multi label classification with train, validation and test images with Densenet/ResNet I am working on Multi-Label Image classification using a dataset having 14,720 training images. I need to implement it using ResNet/DenseNet. I trying to work on it. Could you please suggest me a reference to move f...
https://stackoverflow.com/questions/60784634/how-to-implement-multi-label-classification-with-train-validation-and-test-imag
tensorflow, keras, deep-learning, conv-neural-network, multilabel-classification
1,584,766,881
se_65451939
stackoverflow
MACHINE_LEARNING
How does Tensorflow or Keras handle model weight inititialization and when does it happen?
How does Tensorflow or Keras handle model weight inititialization and when does it happen? After reading the answer to this question I am a bit confused as to when exactly TensorFlow initializes the weight and bias variables. As per the answers, Compile defines the loss function, the optimizer and the metrics. That's ...
https://stackoverflow.com/questions/65451939/how-does-tensorflow-or-keras-handle-model-weight-inititialization-and-when-does
tensorflow, keras, neural-network, transfer-learning
1,608,931,709
se_79499210
stackoverflow
MACHINE_LEARNING
tensorflow dataset loop endless will model.predict
tensorflow dataset loop endless will model.predict I use this code to setup my dataset for trainning and predict: train_dataset = train_dataset.batch(train_batch_sz) train_dataset = train_dataset.repeat().prefetch(5) test_dataset_sim = test_dataset test_dataset = test_dataset.batch(test_batch_sz) test_dataset = test_...
https://stackoverflow.com/questions/79499210/tensorflow-dataset-loop-endless-will-model-predict
python, tensorflow, dataset, tensorflow-datasets
1,741,642,686
se_59308263
stackoverflow
MACHINE_LEARNING
using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function
using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function Currently I faced this error, can anyone help solve it? --------------------------------------------------------------------------- OperatorNotAllowedInGraphError Traceb...
https://stackoverflow.com/questions/59308263/using-a-tf-tensor-as-a-python-bool-is-not-allowed-in-graph-execution-use-ea
python, tensorflow, keras
1,576,165,658
se_79484562
stackoverflow
MACHINE_LEARNING
ImageDataGenerator is throwing Invalid Argument Error
ImageDataGenerator is throwing Invalid Argument Error I am working on an Image classification problem with ImageDataGenerator from the keras library. Here is what my script looks like datagen = ImageDataGenerator(rescale=1./255, validation_split=0.2) train_generator = datagen.flow_from_directory( alzeihmers, ...
https://stackoverflow.com/questions/79484562/imagedatagenerator-is-throwing-invalid-argument-error
python, tensorflow, keras, deep-learning, conv-neural-network
1,741,112,711
se_47053713
stackoverflow
MACHINE_LEARNING
How to pass parameters in tensorflow
How to pass parameters in tensorflow I want to train a network using tensorflow, I choose the "Inception_resnet_v2" as the net(from here), here is my train code, def train(train_dir, annotations, max_step, checkpoint_dir='./checkpoint2/'): # train the model features = tf.placeholder("float32", shape=[None, IMA...
https://stackoverflow.com/questions/47053713/how-to-pass-parameters-in-tensorflow
python, tensorflow, tensor
1,509,535,394
se_67305998
stackoverflow
MACHINE_LEARNING
Can TensorFlow take external Python functions when training a NN?
Can TensorFlow take external Python functions when training a NN? I am trying to train an autoencoder but having already known the decoder (which is a python function). My idea is to train the encoder and feed the latent space to an already known decoder, which is a function in python I already have. So, I am wonderin...
https://stackoverflow.com/questions/67305998/can-tensorflow-take-external-python-functions-when-training-a-nn
python, tensorflow, tensorflow2.0
1,619,634,767
se_61589976
stackoverflow
MACHINE_LEARNING
Load numpy array from pandas dataframe into tensorflow dataset
Load numpy array from pandas dataframe into tensorflow dataset I'm trying to load my pandas dataframe (df) into a Tensorflow dataset with the following command: target = df['label'] features = df['encoded_sentence'] dataset = tf.data.Dataset.from_tensor_slices((features.values, target.values)) Here's an excerpt fr...
https://stackoverflow.com/questions/61589976/load-numpy-array-from-pandas-dataframe-into-tensorflow-dataset
pandas, numpy, tensorflow
1,588,587,702
se_68603717
stackoverflow
MACHINE_LEARNING
Can not install deepface because package versions have conflict
Can not install deepface because package versions have conflict I'm trying to install deepface on mac m1. I have installed tensorflow-macos and current version is 2.5.0. But when I try to install deepface it says that there is a conflict in dependencies versions like deepface 0.0.65 depends on tensorflow>=1.9.0. But a...
https://stackoverflow.com/questions/68603717/can-not-install-deepface-because-package-versions-have-conflict
python, tensorflow
1,627,747,186
se_78737630
stackoverflow
MACHINE_LEARNING
A KerasTensor cannot be used as input to a TensorFlow function
A KerasTensor cannot be used as input to a TensorFlow function I have been following a machine-learning book by Chollet and I keep getting this error in this block of code, specifically in the 3rd line. It seems I am passing a Keras tensor into a tf function but I don't know how to get around this. import tensorflow a...
https://stackoverflow.com/questions/78737630/a-kerastensor-cannot-be-used-as-input-to-a-tensorflow-function
python, tensorflow, keras
1,720,731,015
se_58816662
stackoverflow
MACHINE_LEARNING
NotImplementedError: numpy() is only available when eager execution is enabled
NotImplementedError: numpy() is only available when eager execution is enabled I have these problem when I try to save my model. Besides, I am using Tensorflow 2.0.0 and numpy 1.6.0, so I don't know how to solve the problem because in the latest versions of tensorflow, the eager execution is enabled by default. Compi...
https://stackoverflow.com/questions/58816662/notimplementederror-numpy-is-only-available-when-eager-execution-is-enabled
python, numpy, tensorflow
1,573,554,334
se_79495542
stackoverflow
MACHINE_LEARNING
ResNet50 on TPU calculates NaN for accuracy and loss, works fine on CPU in Google Colab
ResNet50 on TPU calculates NaN for accuracy and loss, works fine on CPU in Google Colab I've trained a ResNet50 on v2-8 TPU accelerator using google colab, I've fed it with 5000 images of shape (224, 224, 3). I've normalized them, no nans, no inf, no class imbalance and everything is alright: INPUT_SHAPE = (224, 224, ...
https://stackoverflow.com/questions/79495542/resnet50-on-tpu-calculates-nan-for-accuracy-and-loss-works-fine-on-cpu-in-googl
tensorflow, machine-learning, keras, google-colaboratory, tpu
1,741,504,030
se_79510734
stackoverflow
MACHINE_LEARNING
Kaggle TPU - Utilization is not currently available for TPU VMs
Kaggle TPU - Utilization is not currently available for TPU VMs I'm training my model on Kaggle GPU, but it's taking too long. So, I decided to switch to TPU for faster training. I enabled TPU in the notebook settings and ran the following code to initialize it: import tensorflow as tf try: tpu = tf.distr...
https://stackoverflow.com/questions/79510734/kaggle-tpu-utilization-is-not-currently-available-for-tpu-vms
tensorflow, kaggle, tpu
1,742,022,045
se_79506392
stackoverflow
MACHINE_LEARNING
Google Colab TPU suddenly not found anymore
Google Colab TPU suddenly not found anymore Issue Since Monday or Thuesday this week (10.03.2025) the Google Colab TPUs are not found anymore. Can someone help me please? I am using TensorFlow Version: 2.18.1 Keras-Tuner Version: 1.4.7 These are my resources Sie haben Colab Pro abonniert. Weitere Informationen Verf...
https://stackoverflow.com/questions/79506392/google-colab-tpu-suddenly-not-found-anymore
tensorflow, google-colaboratory, tpu, keras-tuner
1,741,867,198
se_79500016
stackoverflow
MACHINE_LEARNING
What Are the Correct Versions of Tensorflow and Tensorflow Agents to Work with On Ubuntu 24.04?
What Are the Correct Versions of Tensorflow and Tensorflow Agents to Work with On Ubuntu 24.04? I remember having worked with tensorflow agents (for reinforcement learning) more than three years back, on an Ubuntu 18.04 machine. Of course, all the dependencies, including python versions have been upgraded since then, ...
https://stackoverflow.com/questions/79500016/what-are-the-correct-versions-of-tensorflow-and-tensorflow-agents-to-work-with-o
python, tensorflow, pip, dependency-management, tf-agent
1,741,680,346
se_79508621
stackoverflow
MACHINE_LEARNING
Keras: how to avoid input shape of sequential call being automatically squeezed by input
Keras: how to avoid input shape of sequential call being automatically squeezed by input When creating a sequential MLP taking a batched input of shape [batch,n_channels,1], calling keras.layers.Input forcibly squeezes the last axis resulting in issues in an NN i'm attempting to create that lifts each float on the las...
https://stackoverflow.com/questions/79508621/keras-how-to-avoid-input-shape-of-sequential-call-being-automatically-squeezed
python, tensorflow, keras, keras-layer
1,741,944,323
se_51006505
stackoverflow
MACHINE_LEARNING
How training and test data is split?
How training and test data is split? I am currently training my data using neural network and using fit function. history = model.fit(X, encoded_Y, batch_size=50, nb_epoch=500, validation_split=0.2, verbose=1) Now I have used validation_split as 20%. What I understood is that my training data will be 80% and testing ...
https://stackoverflow.com/questions/51006505/how-training-and-test-data-is-split
tensorflow, machine-learning, keras, neural-network
1,529,807,287
se_79505082
stackoverflow
MACHINE_LEARNING
Tensorflow error unknown expected keyword during loading of trained model
Tensorflow error unknown expected keyword during loading of trained model I have trained a Tensorflow model and saved it on another machine and want to load it locally. When i try to load it i get an error saying Agent.init() got an unexpected keyword argument 'name'. My Agent class is the neural net i want to load bu...
https://stackoverflow.com/questions/79505082/tensorflow-error-unknown-expected-keyword-during-loading-of-trained-model
python, tensorflow, keras, deep-learning, neural-network
1,741,822,176
se_72552272
stackoverflow
MACHINE_LEARNING
Strange behaviour when passing a function into a Tensorflow dataset map method
Strange behaviour when passing a function into a Tensorflow dataset map method This was working perfectly fine for me earlier today, but it suddenly started behaving very strangely when I restarted my notebook. I have a tf dataset that takes in numpy files and their corresponding labels as input, like so tf.data.Datas...
https://stackoverflow.com/questions/72552272/strange-behaviour-when-passing-a-function-into-a-tensorflow-dataset-map-method
python, tensorflow, machine-learning, deep-learning, tensorflow-datasets
1,654,722,817
se_79508217
stackoverflow
MACHINE_LEARNING
tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead
tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead WARNING:tensorflow:From c:\Users\Admin\Desktop\Maria Deniston\ForensicAi\env\Lib\site-packages\tf_keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use...
https://stackoverflow.com/questions/79508217/tf-losses-sparse-softmax-cross-entropy-is-deprecated-please-use-tf-compat-v1-lo
tensorflow, keras
1,741,929,980
se_64215709
stackoverflow
MACHINE_LEARNING
do I use &quot;rescale=1. / 255&quot; or not? Building VGG-like CNN
do I use &quot;rescale=1. / 255&quot; or not? Building VGG-like CNN I am building a CNN with a similar architecture as VGG16. I know in VGG16 u do rescale u also center around 0. Now I train mine from scratch, does it make a difference and should I do it or no? Anyone who can help? datagen = ImageDataGenerator(rescale...
https://stackoverflow.com/questions/64215709/do-i-use-rescale-1-255-or-not-building-vgg-like-cnn
python, tensorflow, keras, conv-neural-network, image-classification
1,601,929,454
se_74864306
stackoverflow
MACHINE_LEARNING
Not able to import pipelines from tensorflow
Not able to import pipelines from tensorflow RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): No module named 'torch.distributed' This is the error while im trying to import pipeline from transformer. My tensorflow is upraded to latesr version 2.11.0 ...
https://stackoverflow.com/questions/74864306/not-able-to-import-pipelines-from-tensorflow
python, python-3.x, tensorflow, pytorch, huggingface-transformers
1,671,545,218
se_49058913
stackoverflow
MACHINE_LEARNING
Interleaving multiple TensorFlow datasets together
Interleaving multiple TensorFlow datasets together The current TensorFlow dataset interleave functionality is basically a interleaved flat-map taking as input a single dataset. Given the current API, what's the best way to interleave multiple datasets together? Say they have already been constructed and I have a list ...
https://stackoverflow.com/questions/49058913/interleaving-multiple-tensorflow-datasets-together
python, tensorflow, tensorflow-datasets
1,519,939,437
se_58114417
stackoverflow
MACHINE_LEARNING
My model&#39;s loss value decreases slowly .how to reduce my loss faster while training?
My model&#39;s loss value decreases slowly .how to reduce my loss faster while training? when I train the model the loss decrease from 0.9 to 0.5 in 2500 epochs. Is it normal? my model: model = Sequential() model.add(Embedding(vocab_size , emd_dim, weights=[emd_matrix], input_length=maxLen,trainable=False)...
https://stackoverflow.com/questions/58114417/my-models-loss-value-decreases-slowly-how-to-reduce-my-loss-faster-while-train
tensorflow, keras, neural-network, deep-learning, nlp
1,569,492,445
se_79504909
stackoverflow
MACHINE_LEARNING
Discrepancy Between NumPy and TensorFlow FFT Outputs: Missing Imaginary Components in TensorFlow
Discrepancy Between NumPy and TensorFlow FFT Outputs: Missing Imaginary Components in TensorFlow I am working on a project where I need to perform Fourier Transform on synthetic periodic data using both NumPy and TensorFlow. However, I am encountering a discrepancy between the FFT outputs of NumPy and TensorFlow. Spec...
https://stackoverflow.com/questions/79504909/discrepancy-between-numpy-and-tensorflow-fft-outputs-missing-imaginary-componen
python, numpy, tensorflow, signal-processing, fft
1,741,815,703
se_79499322
stackoverflow
MACHINE_LEARNING
YOLOv11 Model Converted to TFLite Not Producing Correct Output in TensorFlow
YOLOv11 Model Converted to TFLite Not Producing Correct Output in TensorFlow I'm training an ALPR detection model using the dataset from Roboflow ALPR with YOLOv11, converted to TFLite using: import ultralytics as yolo !yolo detect export model=/content/runs/detect/yolov11_anpr/weights/best.pt imgsz=640 batch=1 format...
https://stackoverflow.com/questions/79499322/yolov11-model-converted-to-tflite-not-producing-correct-output-in-tensorflow
python, tensorflow, artificial-intelligence, data-science, yolo
1,741,647,254
se_79503853
stackoverflow
MACHINE_LEARNING
PyTorch Forecasting TimeSeriesDataSet Returns None in DataLoader Batch
PyTorch Forecasting TimeSeriesDataSet Returns None in DataLoader Batch I am working with pytorch-forecasting to create a TimeSeriesDataSet where I have 30 target variables that I want to predict. However, when I pass this dataset to a DataLoader, I encounter an issue: Expected Behavior Since I have 30 target variables...
https://stackoverflow.com/questions/79503853/pytorch-forecasting-timeseriesdataset-returns-none-in-dataloader-batch
tensorflow, deep-learning, time-series, pytorch-dataloader, pytorch-forecasting
1,741,788,461