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_4904240 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How does the Blue Brain Project (and NEURON software) work? | How does the Blue Brain Project (and NEURON software) work?
This question is related to 873448.
From Wikipedia:
The Blue Brain Project is an attempt to create a synthetic brain by reverse-engineering the mammalian brain down to the molecular level. [...] Using a Blue Gene supercomputer running Michael Hines's NEURON ... | https://stackoverflow.com/questions/4904240/how-does-the-blue-brain-project-and-neuron-software-work | c, artificial-intelligence, internals | 1,296,865,446 |
se_78731321 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use ONNX Transformers model with Spring AI | How to use ONNX Transformers model with Spring AI
I am trying to use ONNX export of model intfloat/multilingual-e5-large:
https://huggingface.co/intfloat/multilingual-e5-large/tree/main/onnx
I have successfully downloaded this model, using it successfuly with Deep Java Library (ai.djl:api:0.28.0) - therefore I am conf... | https://stackoverflow.com/questions/78731321/how-to-use-onnx-transformers-model-with-spring-ai | spring-boot, artificial-intelligence, embedding, onnx | 1,720,623,346 |
se_78688976 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Face Recognize From the Database using embedding technique | Face Recognize From the Database using embedding technique
I am working on a project aimed at recognizing whether a photo of any individual exists in the university's records. The proposed method involves storing the embeddings of each student's photo, along with their details, in a vector database. When a photo needs... | https://stackoverflow.com/questions/78688976/face-recognize-from-the-database-using-embedding-technique | machine-learning, artificial-intelligence, face-recognition, embedding | 1,719,760,195 |
se_78656308 | stackoverflow | ARTIFICIAL_INTELLIGENCE | RAG framework not not working for many model listed "snowparkSQLException 1304 -- unknown model \snowflake-arctic" | RAG framework not not working for many model listed "snowparkSQLException 1304 -- unknown model \snowflake-arctic"
I am referring below RAG example to do some experiment with some private data(some sample pdf).
https://quickstarts.snowflake.com/guide/asking_questions_to_your_own_documents_with_snowflake_cort... | https://stackoverflow.com/questions/78656308/rag-framework-not-not-working-for-many-model-listed-snowparksqlexception-1304 | snowflake-cloud-data-platform, artificial-intelligence, large-language-model | 1,719,065,807 |
se_60915372 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to apply linear layer to 2D layer only in one dimension (by row or by column) - partially connected layers | How to apply linear layer to 2D layer only in one dimension (by row or by column) - partially connected layers
I'm trying to apply a linear layer to a 2D matrix of tensors connecting it only by column as in the picture below.
The input shape is (batch_size, 3, 50). I first tried with 2D convolution, adding a 1 chan... | https://stackoverflow.com/questions/60915372/how-to-apply-linear-layer-to-2d-layer-only-in-one-dimension-by-row-or-by-column | neural-network, artificial-intelligence, pytorch | 1,585,490,934 |
se_78727719 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Can I use Gemini to analyze a JSON firebase RTDB? | Can I use Gemini to analyze a JSON firebase RTDB?
I have a DB at https://dbname-rtdb.firebaseio.com/. I would like to run a prompt in Gemini that says something like
"Do an analysis of the database on
https://dbname-rtdb.firebaseio.com/companies/-idCompany/quantities/
and bring me the total quantity consumed for each... | https://stackoverflow.com/questions/78727719/can-i-use-gemini-to-analyze-a-json-firebase-rtdb | firebase-realtime-database, artificial-intelligence | 1,720,558,959 |
se_78727055 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Flutter/Tensorflow missmatching shapes error | Flutter/Tensorflow missmatching shapes error
I'm making a flutter app running a tensorflow Lite model. I got the following error:
Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 2] to a Java object with shape [1, 215].
Backstory: My trained algorithm uses 215 columns and outputs 1 or 0. Below you ca... | https://stackoverflow.com/questions/78727055/flutter-tensorflow-missmatching-shapes-error | flutter, dart, machine-learning, artificial-intelligence, tensorflow-lite | 1,720,547,044 |
se_78084538 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI Assistants API: How do I upload a file and use it as a knowledge base? | OpenAI Assistants API: How do I upload a file and use it as a knowledge base?
My goal is to create a chatbot that I can provide a file to that holds a bunch of text, and then use the OpenAI Assistants API to actually use the file when querying my chatbot. I will use the gpt-3.5-turbo model to answer the questions.
The... | https://stackoverflow.com/questions/78084538/openai-assistants-api-how-do-i-upload-a-file-and-use-it-as-a-knowledge-base | python, artificial-intelligence, openai-api, chatgpt-api, openai-assistants-api | 1,709,244,405 |
se_78724952 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Convai with Apple Vision Pro in Unity | Convai with Apple Vision Pro in Unity
I am working on the Apple vision pro and want to add Convai with it which is a conventional AI, and it have an pakcage with unity، the problem is whenever I try to open it the camera is black and when I try to play it on the vision pro the button mkust be in the world space. to so... | https://stackoverflow.com/questions/78724952/convai-with-apple-vision-pro-in-unity | unity-game-engine, artificial-intelligence, visionos | 1,720,519,516 |
se_77309956 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Compare two strings by meaning using LLMs | Compare two strings by meaning using LLMs
I'd like to use some of the good large language models to estimate how similar the meanings of two strings are, for example "cat" and "someone who likes to play with yarn", or "cat" and "car".
Maybe some libraries provide a function for comparing strings, or we could implement... | https://stackoverflow.com/questions/77309956/compare-two-strings-by-meaning-using-llms | python, neural-network, artificial-intelligence, large-language-model | 1,697,553,432 |
se_78724362 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Can I use a query string variable to query Anthropic's claude.ai? | Can I use a query string variable to query Anthropic's claude.ai?
I want to use a query string variable to send a question to Claude. Is this possible? There does not appear to be documentation for this.
This is highly useful for quickly sending queries, for example from Keyboard Maestro or Alfred on Mac. It al... | https://stackoverflow.com/questions/78724362/can-i-use-a-query-string-variable-to-query-anthropics-claude-ai | artificial-intelligence, claude | 1,720,511,712 |
se_78494926 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Converting a saved model to tflite and connecting it to flutter Application | Converting a saved model to tflite and connecting it to flutter Application
I am new to Flutter development and have been using Teachable Machine to create my models and connect them to my Flutter app using the flutter_tflite: ^1.0.1 dependency. When I export a model from Teachable Machine, I receive a .tflite file an... | https://stackoverflow.com/questions/78494926/converting-a-saved-model-to-tflite-and-connecting-it-to-flutter-application | flutter, artificial-intelligence, mobile-development, teachable-machine | 1,715,940,293 |
se_22117692 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Using ranking data in Logistic Regression | Using ranking data in Logistic Regression
I am trying to use some ranking data in a logistic regression. I want to use machine learning to make a simple classifier as to whether a webpage is "good" or not. It's just a learning exercise so I don't expect great results; just hoping to learn the "process" and coding tech... | https://stackoverflow.com/questions/22117692/using-ranking-data-in-logistic-regression | python, algorithm, machine-learning, artificial-intelligence, scikit-learn | 1,393,694,719 |
se_78691343 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Mixtral 8x7b, am I running it wrong? | Mixtral 8x7b, am I running it wrong?
as many companies today we're experiencing running local LLM on our own internal servers. With choosed Mixtral 8x7b as it appeared to be the best value for money for a "french speaking" model. The model itself works pretty well but in terms of performance I have to say i'm quite di... | https://stackoverflow.com/questions/78691343/mixtral-8x7b-am-i-running-it-wrong | gpu, artificial-intelligence, vllm, mixtral-8x7b | 1,719,825,214 |
se_78706961 | stackoverflow | ARTIFICIAL_INTELLIGENCE | onnx, Error: Failed to load model because protobuf parsing failed | onnx, Error: Failed to load model because protobuf parsing failed
Iam trying to run a model using @xenova/transformers but getting the following error
Error: Failed to load model because protobuf parsing failed.
at new OnnxruntimeSessionHandler (/root/moondream/node_modules/onnxruntime-node/dist/backend.js:27:92)
... | https://stackoverflow.com/questions/78706961/onnx-error-failed-to-load-model-because-protobuf-parsing-failed | node.js, artificial-intelligence, huggingface-transformers, onnx | 1,720,094,125 |
se_78626618 | stackoverflow | ARTIFICIAL_INTELLIGENCE | libllmodel.dll is missing in gpt4all api llmodel_DO_NOT_MODIFY folder | libllmodel.dll is missing in gpt4all api llmodel_DO_NOT_MODIFY folder
I have recently switched to LocalClient() (g4f api) class in my app. Therefore I decided to recompile my python script into exe. Pyinstaller showed this error:
Traceback (most recent call last):
File "PyInstaller\loader\pyimod03_ctypes.py", line 5... | https://stackoverflow.com/questions/78626618/libllmodel-dll-is-missing-in-gpt4all-api-llmodel-do-not-modify-folder | python, github, artificial-intelligence, gpt4all | 1,718,454,944 |
se_78590413 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Performing Function Calling with Mistral AI through Hugging Face Endpoint | Performing Function Calling with Mistral AI through Hugging Face Endpoint
I am trying to perform function calling using Mistral AI through the Hugging Face endpoint. Mistral AI requires input in a specific string format (assistant: ... \n user: ...). However, the input format provided is not accepted as a list of mess... | https://stackoverflow.com/questions/78590413/performing-function-calling-with-mistral-ai-through-hugging-face-endpoint | artificial-intelligence, large-language-model, huggingface, py-langchain, mistral-7b | 1,717,744,657 |
se_78680906 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Prevent users to use Copilot Edge | Prevent users to use Copilot Edge
I want to prevent users from using Copilot Edge to create a summary of my displayed website.
Is there any way to do this? Robots.txt?
I don't want to switch of Copilot Edge completely - just on my website. | https://stackoverflow.com/questions/78680906/prevent-users-to-use-copilot-edge | html, browser, artificial-intelligence, microsoft-edge | 1,719,555,564 |
se_78669088 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Agent won't learn no matter what I try | Agent won't learn no matter what I try
I am trying to make an RL model for reinforcement learning, and the environment is fairly simple and a 10x10 grid. During the training phase, it reaches the goal. But when I try to test this, The agent takes one direction and goes straight and hits a wall or obstacle. It won'... | https://stackoverflow.com/questions/78669088/agent-wont-learn-no-matter-what-i-try | python, deep-learning, artificial-intelligence, reinforcement-learning | 1,719,341,454 |
se_78669401 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Translating Documents in Azure AI Translator | Translating Documents in Azure AI Translator
Can someone please point me to a good, easy-to-understand resource on how to get documents translated within Azure AI Translator? Ideally, a step-by-step instruction video. Thanks!
The Azure AI interface is incredibly cumbersome, hard to understand, and most online resource... | https://stackoverflow.com/questions/78669401/translating-documents-in-azure-ai-translator | azure, artificial-intelligence, translation, language-translation, machine-translation | 1,719,347,192 |
se_78664794 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Different results for the same epoch using different number of total epochs | Different results for the same epoch using different number of total epochs
I am training a Machine Learning model for STS task using the Sentence Transformers library.
When I was testing it, I noticed that my model generated different results for the same number of epochs depending on the number of epochs I provided ... | https://stackoverflow.com/questions/78664794/different-results-for-the-same-epoch-using-different-number-of-total-epochs | machine-learning, artificial-intelligence, fine-tuning, sentence-similarity, sentence-transformers | 1,719,268,504 |
se_78673884 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Export a ollama custom model I created | Export a ollama custom model I created
I have just created an app that use a custom ollama model based on llama3 and for easy deployment i want to add except(or in replace) to my model file the actual "compiled" model, i saw that you can load a model from a bin file but i couldn't find a way to export my model out to ... | https://stackoverflow.com/questions/78673884/export-a-ollama-custom-model-i-created | model, export, artificial-intelligence, ollama | 1,719,423,178 |
se_78672314 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why a difference in Score for Manhattan distance vs Cosine Distance despite same text chunk being returned? | Why a difference in Score for Manhattan distance vs Cosine Distance despite same text chunk being returned?
I am using the qdrant DB and client for embedding a document as part of a PoC that I am working on in building a RAG.
I see that when I use a Manhattan distance to build the vector collection I get a high score ... | https://stackoverflow.com/questions/78672314/why-a-difference-in-score-for-manhattan-distance-vs-cosine-distance-despite-same | artificial-intelligence, openai-api, qdrantclient | 1,719,403,631 |
se_78673591 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Google Vertex AI - Agent Builder - Data store not returning the FAQ documents | Google Vertex AI - Agent Builder - Data store not returning the FAQ documents
I have recently started using the Agent builder and setup the tool. The tool has 3 data stores, one is website and as i tested the Agent (included the snippet) the Tool function is able to search correctly the query from Data Store. However,... | https://stackoverflow.com/questions/78673591/google-vertex-ai-agent-builder-data-store-not-returning-the-faq-documents | artificial-intelligence, chatbot, google-cloud-vertex-ai, dialogflow-cx | 1,719,418,970 |
se_78669614 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Image inference with cycleGan model from CycleGAN-and-pix2pix open source repo | Image inference with cycleGan model from CycleGAN-and-pix2pix open source repo
I have trained a cycleGan model on google colab according to the CycleGAN-and-pix2pix opensource API.
For the train process I used !python train.py --dataroot /content/drive/MyDrive/project/dataset --name F2F --model cycle_gan --display_id... | https://stackoverflow.com/questions/78669614/image-inference-with-cyclegan-model-from-cyclegan-and-pix2pix-open-source-repo | python, machine-learning, deep-learning, artificial-intelligence, generative-adversarial-network | 1,719,351,770 |
se_78459632 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Ask LLM to pick random data from prompted dataset | Ask LLM to pick random data from prompted dataset
I try to generate suggestions of books. The problem is my LLM (here claude 3 api) give always the same well known books from one instance to an other...
So I have tried to give a [BOOKS DATASET] tag with a list of hundreds of books and I prompted the llm to take random... | https://stackoverflow.com/questions/78459632/ask-llm-to-pick-random-data-from-prompted-dataset | artificial-intelligence, google-generativeai, claude | 1,715,338,338 |
se_78668615 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Llama 3 8B parameters does not show a response | Llama 3 8B parameters does not show a response
I am using HuggingFace's Llama-3-8B parameter model, so it is running locally and i asked it the question
pipeline("What is the capital of France? Answer in one word.")
And I left it to run for 30 mins, no response.
Even on a Ryzen 7 5800, it does not work. I understand ... | https://stackoverflow.com/questions/78668615/llama-3-8b-parameters-does-not-show-a-response | artificial-intelligence, llama | 1,719,333,761 |
se_1523420 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to convert the output of an artificial neural network into probabilities? | How to convert the output of an artificial neural network into probabilities?
I've read about neural network a little while ago and I understand how an ANN (especially a multilayer perceptron that learns via backpropagation) can learn to classify an event as true or false.
I think there are two ways :
1) You get one... | https://stackoverflow.com/questions/1523420/how-to-convert-the-output-of-an-artificial-neural-network-into-probabilities | artificial-intelligence, neural-network | 1,254,799,076 |
se_78665652 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Microsoft ML .Net Forecasting Model backtest usage issue | Microsoft ML .Net Forecasting Model backtest usage issue
I am new in ML .Net Forecasting. I am trying to build a simple application for Prediction.
Time Series (step is 1 month, 1993-1995),
Data = values incrementing with step 10 starting from 100.
Then I save the model and load it again just to simulate closing and l... | https://stackoverflow.com/questions/78665652/microsoft-ml-net-forecasting-model-backtest-usage-issue | c#, .net, artificial-intelligence, forecasting, ml.net | 1,719,296,100 |
se_77968083 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Langchain DynamoDBChatMessageHistory add sortkey and customer attributes | Langchain DynamoDBChatMessageHistory add sortkey and customer attributes
A conversational chain with DynamoDb for memory is setup.
Everything works fine, regarding retrieving and inserting messages into the memory. However, I want to add a sortkey and add custom attributes on top of the base key provided by the Dynamo... | https://stackoverflow.com/questions/77968083/langchain-dynamodbchatmessagehistory-add-sortkey-and-customer-attributes | amazon-web-services, amazon-dynamodb, artificial-intelligence, chatbot, langchain | 1,707,481,002 |
se_78658540 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Cancelling a search running in a separate thread (chess engine) | Cancelling a search running in a separate thread (chess engine)
I'm currently working on my chess engine in C#, Unity. My engine runs a search in a separate thread, so the Unity main thread works fine while calculating. To stop my engine from calculating too long, I made a time-out function. This function sets the 'ca... | https://stackoverflow.com/questions/78658540/cancelling-a-search-running-in-a-separate-thread-chess-engine | c#, unity-game-engine, artificial-intelligence, chess | 1,719,141,849 |
se_78655715 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Fixing Tensor Shape/Dimension Mismatch Errors in TimeSeries Transformer for Stock Price Prediction | Fixing Tensor Shape/Dimension Mismatch Errors in TimeSeries Transformer for Stock Price Prediction
I am training a timeseries transformer model to predict stock price changes based on the previous day price and other parameters.
I have encountered a series of errors related to tensor shape, dimensions, and size.
Now I... | https://stackoverflow.com/questions/78655715/fixing-tensor-shape-dimension-mismatch-errors-in-timeseries-transformer-for-stoc | python, machine-learning, artificial-intelligence, huggingface-transformers, pyalgotrade | 1,719,050,880 |
se_56697930 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I change this to use a q table for reinforcement learning | How can I change this to use a q table for reinforcement learning
I am working on learning q-tables and ran through a simple version which only used a 1-dimensional array to move forward and backward. Now I am trying 4 direction movement and got stuck on controlling the person.
I got the random movement down now and i... | https://stackoverflow.com/questions/56697930/how-can-i-change-this-to-use-a-q-table-for-reinforcement-learning | python, artificial-intelligence, reinforcement-learning, q-learning | 1,561,098,241 |
se_78653204 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I set up openslide in my Vs Code environment? | How do I set up openslide in my Vs Code environment?
Source code: https://github.com/vqdang/hover_net?tab=readme-ov-file
I am struggling to set up the environment required to use this github repo:
name: hovernet
channels:
- conda-forge
- defaults
dependencies:
- python=3.6.12
- pip=20.3.1
- openslide
- pip... | https://stackoverflow.com/questions/78653204/how-do-i-set-up-openslide-in-my-vs-code-environment | python, visual-studio, github, artificial-intelligence, github-for-windows | 1,718,983,414 |
se_78607141 | stackoverflow | ARTIFICIAL_INTELLIGENCE | My app returns all keywords instead of existing in the string list in ml.net and c# | My app returns all keywords instead of existing in the string list in ml.net and c#
In an application for a law article, there is a list of strings with keywords. In the example it is assigned to the variable keywords.
In my example there is an article with the title İşçilik Alacaklarında Kısmi Dava ve Belirsiz Alacak... | https://stackoverflow.com/questions/78607141/my-app-returns-all-keywords-instead-of-existing-in-the-string-list-in-ml-net-and | c#, artificial-intelligence, ml.net | 1,718,104,687 |
se_78650216 | stackoverflow | ARTIFICIAL_INTELLIGENCE | RuntimeError: shape '[16, 32, 63]' is invalid for input of size 4032 - LSTM - Hand recognition action | RuntimeError: shape '[16, 32, 63]' is invalid for input of size 4032 - LSTM - Hand recognition action
I'm new to python and Pytorch. I'm try to train the LSTM for hand regconition action with Mediapipe based on the script of this GITHUB repository https://github.com/alexriedel1/Hand-Gesture-Recognition-in-manu... | https://stackoverflow.com/questions/78650216/runtimeerror-shape-16-32-63-is-invalid-for-input-of-size-4032-lstm-ha | python, pytorch, artificial-intelligence, lstm | 1,718,937,725 |
se_78435923 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Adding together ai as a custom provider in a next.js vercel ai project | Adding together ai as a custom provider in a next.js vercel ai project
I'm trying to generate object with vercel ai sdk, here is the example:
https://sdk.vercel.ai/examples/next-app/basics/generating-object
But the problem is, I dont wanna use open ai, I'm using together ai models, and to use that in the example code,... | https://stackoverflow.com/questions/78435923/adding-together-ai-as-a-custom-provider-in-a-next-js-vercel-ai-project | next.js, artificial-intelligence, vercel-ai | 1,714,990,344 |
se_78643476 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I convert Gradio app to flask api? | How can I convert Gradio app to flask api?
I am trying to convert Gradio app to flask api.
In Gradio app, it is using components like Image, Text, and so on.
I have to change that component to request form data.
However, I am suffering with image processing.
I need any help.
This is my code.
cloth_image = gr.Image(lab... | https://stackoverflow.com/questions/78643476/how-can-i-convert-gradio-app-to-flask-api | python, flask, artificial-intelligence, gradio | 1,718,811,677 |
se_78641151 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Facing issue with Custom Function and Model in Tensor flow | Facing issue with Custom Function and Model in Tensor flow
I was implementing a Dehazenet model by using tensorflow where i had to create a Maxout and Brelu class and function as there is nothing built-in in tensorflow for them to use, later while trying to use my saved model i faced errors and exception
ERROR :
Trace... | https://stackoverflow.com/questions/78641151/facing-issue-with-custom-function-and-model-in-tensor-flow | python-3.x, tensorflow, keras, artificial-intelligence, custom-function | 1,718,783,429 |
se_76570657 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Unable to run stable diffusion correctly | Unable to run stable diffusion correctly
I'm new to SD, Ive installed required software and copied the model.ckpt to models\Stable-diffusion folder. theres no error in running "webui-user.bat" but Stable diffusion checkpoint takes forever to load that is why i'm unable to generate img.
What can possibly wrong with my ... | https://stackoverflow.com/questions/76570657/unable-to-run-stable-diffusion-correctly | python, artificial-intelligence, stable-diffusion | 1,687,934,568 |
se_78631846 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why might a discriminator (for a modified WGAN architecture) with a non-singlular output perform better than traditional discriminator? | Why might a discriminator (for a modified WGAN architecture) with a non-singlular output perform better than traditional discriminator?
The following are the Generator and Discriminator model architectures for a (modified) WGAN model that I have come up with for downsampling rainfall data by a factor of 4 (only as a t... | https://stackoverflow.com/questions/78631846/why-might-a-discriminator-for-a-modified-wgan-architecture-with-a-non-singlula | tensorflow, machine-learning, conv-neural-network, artificial-intelligence, generative-adversarial-network | 1,718,616,549 |
se_78633580 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ValueError: Shapes (None, 5754, 4) and (None, 360, 4) are incompatible in my CNN | ValueError: Shapes (None, 5754, 4) and (None, 360, 4) are incompatible in my CNN
I'm trying to train a CNN for movement classification using acceleration data. The shapes of my X_train data and my Y_train data are:
Train data shape: (637, 5754, 96)
Train labels shape: (637, 5754, 4)
And this is my code:
model = Seque... | https://stackoverflow.com/questions/78633580/valueerror-shapes-none-5754-4-and-none-360-4-are-incompatible-in-my-cnn | python, neural-network, conv-neural-network, artificial-intelligence | 1,718,639,682 |
se_78630534 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I fix this React failure to compile error when using the Groq API? | How do I fix this React failure to compile error when using the Groq API?
I am trying to use the Groq AI in my app to be able to add a feature where users can send a message to the AI and get back a response. But I am running into the following error
./node_modules/groq-sdk/index.js 78:32
Module parse failed: Unexpect... | https://stackoverflow.com/questions/78630534/how-do-i-fix-this-react-failure-to-compile-error-when-using-the-groq-api | javascript, reactjs, artificial-intelligence, openai-api, groq | 1,718,583,270 |
se_78614835 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is my minimax algorithm not outputting the best move | Why is my minimax algorithm not outputting the best move
i wanted to test out a universal minimax algorithm, that should return the best possible position for a scenario, the code for the algorithm:
import java.util.ArrayList;
public class AI<E> {
public int go = 0;
protected int minimax(ArrayList<E> position,... | https://stackoverflow.com/questions/78614835/why-is-my-minimax-algorithm-not-outputting-the-best-move | java, artificial-intelligence, minimax | 1,718,224,085 |
se_78026212 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Does static quantization enable the model to feed a layer with the output of the previous one, without converting to fp (and back to int)? | Does static quantization enable the model to feed a layer with the output of the previous one, without converting to fp (and back to int)?
I was reading about quantization (specifically abount int8) and trying to figure it out if there is a method to avoid dequantize and requantize the output of a node before feeding ... | https://stackoverflow.com/questions/78026212/does-static-quantization-enable-the-model-to-feed-a-layer-with-the-output-of-the | neural-network, artificial-intelligence, onnx, quantization, static-quantization | 1,708,422,124 |
se_78619835 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Enemy AI not working correctly using state machine | Enemy AI not working correctly using state machine
so i made a state machine for my game but my problem is that when the enemy "sees" the player it switches from idle to attack skipping chase state and the enemy never moves. Also it doesn't switch back to chase state when player is out of attack range.
this is my enti... | https://stackoverflow.com/questions/78619835/enemy-ai-not-working-correctly-using-state-machine | c#, unity-game-engine, artificial-intelligence, state-machine | 1,718,307,120 |
se_78615842 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how to know the behavior of a sentence using NLP | how to know the behavior of a sentence using NLP
I am trying to build the NLP model, using that nlp model i want to know the intention of text sentence.
Hi,
I am trying to build the NLP model, using that nlp model i want to know the intention of text sentence.
For Ex- If the sentence is like "Create an incident for no... | https://stackoverflow.com/questions/78615842/how-to-know-the-behavior-of-a-sentence-using-nlp | c#, asp.net, azure, nlp, artificial-intelligence | 1,718,253,495 |
se_78570282 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to Fine-Tune Pre-Trained Stable Diffusion Models Using Custom Images | How to Fine-Tune Pre-Trained Stable Diffusion Models Using Custom Images
I am utilizing Stable Diffusion XL Base 1.0 for image generation, but it does not accept my custom input image. I would like to generate a new image based on my input image and the specified prompt.
I need a solution to generate anthropomorphic p... | https://stackoverflow.com/questions/78570282/how-to-fine-tune-pre-trained-stable-diffusion-models-using-custom-images | image-processing, deep-learning, artificial-intelligence, stable-diffusion, image-generation | 1,717,417,904 |
se_78610947 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Input to machine learning model | Input to machine learning model
I trained a bert based model that I had been working on for quite sometime now. After the training, I got a few files in the model directory - pytorch_model.bin, training_args.bin, merges.txt, vocab.json. Now I want to test the model by providing an input to the model and examine it's o... | https://stackoverflow.com/questions/78610947/input-to-machine-learning-model | machine-learning, artificial-intelligence, bert-language-model | 1,718,173,651 |
se_77127630 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI Chat Completions API error: Why do I get an HTTP error 400 on the ESP32 board? | OpenAI Chat Completions API error: Why do I get an HTTP error 400 on the ESP32 board?
I was planning to make a project to receive the response given by chatgpt to my ESP32 board for a given text. I tried the following, but after connecting to the WiFi, the serial plotter shows the message HTTP error 400. I double-chec... | https://stackoverflow.com/questions/77127630/openai-chat-completions-api-error-why-do-i-get-an-http-error-400-on-the-esp32-b | arduino, artificial-intelligence, openai-api, arduino-esp32, chatgpt-api | 1,695,043,553 |
se_48358874 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Merge weights of same model trained on 2 different computers using tensorflow | Merge weights of same model trained on 2 different computers using tensorflow
I was doing some research on training deep neural networks using tensorflow. I know how to train a model. My problem is i have to train the same model on 2 different computers with different datasets. Then save the model weights. Later i hav... | https://stackoverflow.com/questions/48358874/merge-weights-of-same-model-trained-on-2-different-computers-using-tensorflow | tensorflow, neural-network, keras, artificial-intelligence | 1,516,468,190 |
se_78600925 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to detect multiple tasks in a single command using LLM or any NLP model? | How to detect multiple tasks in a single command using LLM or any NLP model?
I am building a bot that takes inputs from users and performs action. Now I want it to differentiate between commands that contain single task and multiple tasks.
How can I make this a reality? Should I utilize prompting but there are infinit... | https://stackoverflow.com/questions/78600925/how-to-detect-multiple-tasks-in-a-single-command-using-llm-or-any-nlp-model | artificial-intelligence, openai-api, prompt, large-language-model | 1,718,003,488 |
se_78597265 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Retrieving relevant documents for specific queries | Retrieving relevant documents for specific queries
I am trying to retrieve the top 5 relevant documents related to a user's query using the RAG-Token model. I'm using a custom knowledge base and I tried adjusting the retrieval parameters.
This is the code:
# Include a minimal, complete, and verifiable example of the c... | https://stackoverflow.com/questions/78597265/retrieving-relevant-documents-for-specific-queries | python, artificial-intelligence, fine-tuning, retrieval-augmented-generation | 1,717,892,140 |
se_78497575 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I train yolo model with my own data set but there is no test result | I train yolo model with my own data set but there is no test result
I am training the model using the Yolov3 model with the data set I received from Kaggle. Model training is completed and I add the new weights to the backup folder. I run one of the fruits I trained with for testing, but object detection does not occu... | https://stackoverflow.com/questions/78497575/i-train-yolo-model-with-my-own-data-set-but-there-is-no-test-result | machine-learning, artificial-intelligence, object-detection, yolo | 1,715,973,692 |
se_78598636 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Getting Error: astrapy.core.api.APIRequestError while trying to connect to astradb | Getting Error: astrapy.core.api.APIRequestError while trying to connect to astradb
I am getting astrapy.core.api.APIRequestError while trying to connect to AstraDB, I am aware what error is saying but I did not find any solution.
Complete Error:
astrapy.core.api.APIRequestError: {"errors":[{"message":"No \"findCollect... | https://stackoverflow.com/questions/78598636/getting-error-astrapy-core-api-apirequesterror-while-trying-to-connect-to-astra | python, artificial-intelligence, langchain, datastax-astra | 1,717,937,500 |
se_78597945 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Epsilon decays very quickly in DQN training | Epsilon decays very quickly in DQN training
I'm trying to train a ViZDoom agent with Deep Reinforcement Learning. The problem I have is that the epsilon decays very quickly, and I'm not sure what to do. Any recommendations?
Previously, to decrease it I only had to multiply by the epsilon_decay, and it was decreasing w... | https://stackoverflow.com/questions/78597945/epsilon-decays-very-quickly-in-dqn-training | deep-learning, pytorch, artificial-intelligence, dqn | 1,717,919,698 |
se_78596157 | stackoverflow | ARTIFICIAL_INTELLIGENCE | LSTM not learning with the label/answer literally in the features | LSTM not learning with the label/answer literally in the features
In my code, I put the labels as the first feature in the first timestep, and the LSTM is unable to learn that the answer is in the first timestemp, almost like it is blind to it.
I ran this test because in my real data, my LSTM thinks some variables in ... | https://stackoverflow.com/questions/78596157/lstm-not-learning-with-the-label-answer-literally-in-the-features | python, machine-learning, artificial-intelligence, lstm, recurrent-neural-network | 1,717,860,861 |
se_78595824 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Custom image is not being predicted correctly in MNIST neural network model from scratch | Custom image is not being predicted correctly in MNIST neural network model from scratch
Accuracy = 92.29285714285714 % on test data but custom image is predicting incorrectly. I have tried multiple numbers. Am I doing preprocessing of custom image wrong? Or simple feedforward neural network isn't powerful enough to ... | https://stackoverflow.com/questions/78595824/custom-image-is-not-being-predicted-correctly-in-mnist-neural-network-model-from | machine-learning, neural-network, artificial-intelligence, mnist, relu | 1,717,853,451 |
se_68135394 | stackoverflow | ARTIFICIAL_INTELLIGENCE | darknet doesn't use p5000 gpu with cuda | darknet doesn't use p5000 gpu with cuda
i run this command
./darknet detector train data/obj.data cfg/yolov3_training.cfg back/last_4_4_7pm.weights /back -dont_show -gpus 0
but gou is not been used and 0 %
here is my makefile;:
%cd darknet
!sed -i 's/OPENCV=0/OPENCV=1/' Makefile
!sed -i 's/GPU=0/GPU=1/' Makefil... | https://stackoverflow.com/questions/68135394/darknet-doesnt-use-p5000-gpu-with-cuda | machine-learning, artificial-intelligence, object-detection, yolo, darknet | 1,624,644,275 |
se_78585615 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Cannot access embeddings endpoint on vLLM hosting llama3-8b-instruct | Cannot access embeddings endpoint on vLLM hosting llama3-8b-instruct
I'm using vllm to run llama3-8b-instruct on a machine, I can access the chat endpoint, but when I access the embedding endpoint using following code I get NotFoundError: Error code: 404 - {'detail': 'Not Found'}
from openai import OpenAI
# Modify Op... | https://stackoverflow.com/questions/78585615/cannot-access-embeddings-endpoint-on-vllm-hosting-llama3-8b-instruct | artificial-intelligence, word-embedding, llama, vllm | 1,717,665,245 |
se_78593325 | stackoverflow | ARTIFICIAL_INTELLIGENCE | pip error "error: externally-managed-environment " while instaling transformers==4.30.2 | pip error "error: externally-managed-environment " while instaling transformers==4.30.2
I was trying to install fooccus ai on arch linux:
python3 -m venv fooocus_env
source fooocus_env/bin/activate
pip install -r requirements_versions.txt
output
(fooocus_env) ➜ Fooocus git:(main) pip install -r requireme... | https://stackoverflow.com/questions/78593325/pip-error-error-externally-managed-environment-while-instaling-transformers | python, pip, artificial-intelligence | 1,717,781,098 |
se_78576908 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is Sagemaker Endpoint invocation giving an "Failed to deserialize Error" | Why is Sagemaker Endpoint invocation giving an "Failed to deserialize Error"
I am trying to invoke model(Falcon 40B) via sagemaker endpoint, I get the below error when I make the call.
Error:-
Failed to deserialize the JSON body into the target type: invalid type: string "{"name": "john mclain"}", expected s... | https://stackoverflow.com/questions/78576908/why-is-sagemaker-endpoint-invocation-giving-an-failed-to-deserialize-error | amazon-web-services, artificial-intelligence, boto3, amazon-sagemaker | 1,717,522,175 |
se_76850304 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Hugging face model not transcribing the entire length of the audio file | Hugging face model not transcribing the entire length of the audio file
Brief: I'm unable to transcribe more than a few seconds of audio in a 5 minute audio file using hugging face open ai whisper(finetuned) model.
I'm facing issues with transcribing a Indian local language audio file using this(https://huggingface.co... | https://stackoverflow.com/questions/76850304/hugging-face-model-not-transcribing-the-entire-length-of-the-audio-file | nlp, artificial-intelligence, google-colaboratory, huggingface-transformers, openai-whisper | 1,691,399,749 |
se_78564560 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Google forms prefill url with current date and time or script or ai | Google forms prefill url with current date and time or script or ai
Essentially what im trying to do is make it so the entry field of my form for the date and time gets autofilled with the current date
I do know theres a script editor but i have no idea how to make it so the year month and date gets filled "${dateEntr... | https://stackoverflow.com/questions/78564560/google-forms-prefill-url-with-current-date-and-time-or-script-or-ai | forms, url, artificial-intelligence, google-forms, autofill | 1,717,264,832 |
se_78542429 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Running out of RAM when finetuning model | Running out of RAM when finetuning model
I am currently trying to finetune Wav2Vec2 model from: https://huggingface.co/dima806/bird_sounds_classification. But my RAM utilisation is running over the free tier on Google Colab.
The following is my code:
from transformers import TrainingArguments, Trainer
# Load model wi... | https://stackoverflow.com/questions/78542429/running-out-of-ram-when-finetuning-model | machine-learning, pytorch, artificial-intelligence, huggingface-transformers | 1,716,880,221 |
se_78464664 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Matplotlib to pyqtgraph | Matplotlib to pyqtgraph
Does anyone have a converter that takes working plots created with matplotlib and produce a reasonable equivalent in pyqtgraph? Seems like it should be possible. It would save me a lot of time.
I'm new to pyqtgraph and find it's documentation less than helpful. I'm amazed to see how long pyq... | https://stackoverflow.com/questions/78464664/matplotlib-to-pyqtgraph | matplotlib, plot, artificial-intelligence, converters, pyqtgraph | 1,715,431,647 |
se_78564460 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why do I get different testing result using the same Q-value table | Why do I get different testing result using the same Q-value table
I am studying ML and was trying to make a reinforcement learning algorithm for a gymnasium environment. I already made a q-learning for a very basic and simple problem and I decided to use the same algorithm with a slightly more complex environment suc... | https://stackoverflow.com/questions/78564460/why-do-i-get-different-testing-result-using-the-same-q-value-table | python, machine-learning, artificial-intelligence, reinforcement-learning, q-learning | 1,717,262,238 |
se_71648997 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Enemy Pathfinding with A* (AStar) & Unity | Enemy Pathfinding with A* (AStar) & Unity
How do I make an enemy stop at a certain distance from the player rather than going right to it? I want to create a ranged unit. I can do the enemy attacks, I just don't want the enemy to go directly to the player. I have a custom AI script on my enemy using the AStar path... | https://stackoverflow.com/questions/71648997/enemy-pathfinding-with-a-astar-unity | c#, unity-game-engine, artificial-intelligence, a-star | 1,648,477,342 |
se_78573089 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how to get my chat bot to remember custom responses in discord then put it in intents.json python | how to get my chat bot to remember custom responses in discord then put it in intents.json python
hello am trying to get my discord bot to remeber what its learned after i shut it down but each time i boot it up again to test it forget everything its learned
heres the code
import discord
from discord.ext import comman... | https://stackoverflow.com/questions/78573089/how-to-get-my-chat-bot-to-remember-custom-responses-in-discord-then-put-it-in-in | python, discord.py, artificial-intelligence | 1,717,466,455 |
se_75140381 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Microsoft Syntex not triggering after power automate saved documents into a library | Microsoft Syntex not triggering after power automate saved documents into a library
I am using Microsoft Syntex Content understanding on a specific Document library in Sharepoint (M365).When files are dragged into the library manually, content processing starts as expected and delivers results.
When files are added to... | https://stackoverflow.com/questions/75140381/microsoft-syntex-not-triggering-after-power-automate-saved-documents-into-a-libr | sharepoint, artificial-intelligence, power-automate | 1,673,909,042 |
se_78557561 | stackoverflow | ARTIFICIAL_INTELLIGENCE | failure error attempting to create a a new flow in Azure PromptFlow within Azure AI Studio | failure error attempting to create a a new flow in Azure PromptFlow within Azure AI Studio
Go to Azure AI Studio,
open prompt flow,
CREATE new flow...
Choose from gallery/templates...
Fails (multiple users)
Used to work a week ago, and still works in another AI Studio instance I have. User Rights/Roles should be sim... | https://stackoverflow.com/questions/78557561/failure-error-attempting-to-create-a-a-new-flow-in-azure-promptflow-within-azure | azure, artificial-intelligence | 1,717,111,375 |
se_77759685 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to return source documents when using LangChain Expression Language (LCEL)? | How to return source documents when using LangChain Expression Language (LCEL)?
Most samples of using LangChain's Expression Language (LCEL) look like this:
chain = setup_and_retrieval | prompt | model | output_parser
How can I access the source_documents in a RAG application when using this expression language? | https://stackoverflow.com/questions/77759685/how-to-return-source-documents-when-using-langchain-expression-language-lcel | artificial-intelligence, langchain, py-langchain, retrieval-augmented-generation | 1,704,384,764 |
se_78569087 | stackoverflow | ARTIFICIAL_INTELLIGENCE | The pre-trained model stabilityai/stable-diffusion-xl-refiner-1.0 is not working on when giving input image | The pre-trained model stabilityai/stable-diffusion-xl-refiner-1.0 is not working on when giving input image
the issue is that when giving the input image to the stabilityai/stable-diffusion-xl-refiner-1.0 model then it is not taking the given image rather than that model is creating the image according to the prompt.
... | https://stackoverflow.com/questions/78569087/the-pre-trained-model-stabilityai-stable-diffusion-xl-refiner-1-0-is-not-working | artificial-intelligence, stable-diffusion, image-generation | 1,717,401,864 |
se_78559070 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pandas takes all columns of a dataframe even when some columns are specified | Pandas takes all columns of a dataframe even when some columns are specified
I am trying to train KMeans model using Scikit-Learn.
I am stuck on this issue for 2 days.
Pandas is selecting all columns of a dataframe even though I specified 2 columns.
Here is the dataframe in the form of .to_dict():
{'area': {0: 15.26, ... | https://stackoverflow.com/questions/78559070/pandas-takes-all-columns-of-a-dataframe-even-when-some-columns-are-specified | pandas, machine-learning, scikit-learn, artificial-intelligence, sklearn-pandas | 1,717,145,978 |
se_13028961 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to force approxPolyDP() to return only the best 4 corners? - Opencv 2.4.2 | How to force approxPolyDP() to return only the best 4 corners? - Opencv 2.4.2
well the question says it all
I have some contour and I want to get the best quadrangular out of it | https://stackoverflow.com/questions/13028961/how-to-force-approxpolydp-to-return-only-the-best-4-corners-opencv-2-4-2 | c++, image-processing, opencv, artificial-intelligence | 1,350,989,916 |
se_77132684 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What is the actual order of execution when Top-K, Top-P and Temperature are used together for NLP decoding? | What is the actual order of execution when Top-K, Top-P and Temperature are used together for NLP decoding?
Let's say I use:
sample_outputs = model.generate(**model_inputs,max_new_tokens=40,do_sample=True,
top_k=3,top_p=0.51, temperature=0.6, num_return_sequences=3,)
What is the order of execution in this one?
Lo... | https://stackoverflow.com/questions/77132684/what-is-the-actual-order-of-execution-when-top-k-top-p-and-temperature-are-used | machine-learning, deep-learning, nlp, artificial-intelligence, huggingface-transformers | 1,695,110,411 |
se_78566606 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I implement open AI api. Do I need to use langchain or directly calling open ai api | How can I implement open AI api. Do I need to use langchain or directly calling open ai api
I'm working on a project where I need to integrate AI on my website to recommend songs based on user input. For example, if a user says they want to listen to "sad songs" or "dance music," the AI should return some genres that ... | https://stackoverflow.com/questions/78566606/how-can-i-implement-open-ai-api-do-i-need-to-use-langchain-or-directly-calling | node.js, artificial-intelligence, langchain | 1,717,335,884 |
se_78565013 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Using llama3 model to parse markdown data | Using llama3 model to parse markdown data
I am trying to use llama3 model to parse markdown data input and to create a markdown table for me.
Here is my Python script. The only external library is ollama Python library. I would be greatfull to any suggestions how to do this in the proper and best practices way or at l... | https://stackoverflow.com/questions/78565013/using-llama3-model-to-parse-markdown-data | python, python-3.x, artificial-intelligence, llama, ollama | 1,717,279,921 |
se_78564699 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is LlamaCPP freezing during inference? | Why is LlamaCPP freezing during inference?
I'm using the following code to try and recieve a response from LlamaCPP, used through the LlamaIndex library. My model is stored locally in a gguf file. I'm trying to do inference on the CPU as my VRAM is limited. My program prints out the initialization code (also pasted be... | https://stackoverflow.com/questions/78564699/why-is-llamacpp-freezing-during-inference | python, artificial-intelligence, large-language-model, llama-index, llamacpp | 1,717,268,888 |
se_78564233 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Issue with Transformer-based Chatbot Generating Incoherent answers | Issue with Transformer-based Chatbot Generating Incoherent answers
I'm developing a chatbot using Hugging Face's transformers library. The bot is supposed to detect the input language (Spanish, Catalan, or English) and respond accordingly using pre-trained models. However, the responses are often incoherent or contain... | https://stackoverflow.com/questions/78564233/issue-with-transformer-based-chatbot-generating-incoherent-answers | python, command-line-interface, artificial-intelligence | 1,717,256,797 |
se_77008683 | stackoverflow | ARTIFICIAL_INTELLIGENCE | TypeError: OpenAIApi is not a constructor | TypeError: OpenAIApi is not a constructor
i got error:
const openai = new OpenAIApi({ key: apiKey });
^
TypeError: OpenAIApi is not a constructor
when I'm trying to create an openai api using nodejs (v16.7.0). I've followed the code in documentation and installed the openai api (v4.3.1)
code I used:
c... | https://stackoverflow.com/questions/77008683/typeerror-openaiapi-is-not-a-constructor | javascript, node.js, artificial-intelligence, openai-api | 1,693,403,531 |
se_40826928 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to solve this using logical proof and prolog? | How to solve this using logical proof and prolog?
There are 3 rooms displaying the following notices on them.
Room 1 : Princess is not in this room. Room 2 : Princess is not in this room. Room 3 : Princess is not in Room 2.
Only one statement is true.
Please help! | https://stackoverflow.com/questions/40826928/how-to-solve-this-using-logical-proof-and-prolog | prolog, logic, artificial-intelligence | 1,480,233,807 |
se_78554966 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to handle HTTP 429 in Spring Boot AI App? | How to handle HTTP 429 in Spring Boot AI App?
I am trying to develop a application using spring Gen AI.
Endpoint returns a Http 429 error code
Error response: I ran into this error below
retrofit2.adapter.rxjava2.HttpException: HTTP 429
at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservabl... | https://stackoverflow.com/questions/78554966/how-to-handle-http-429-in-spring-boot-ai-app | spring, spring-boot, machine-learning, artificial-intelligence, spring-resttemplate | 1,717,072,231 |
se_78547320 | stackoverflow | ARTIFICIAL_INTELLIGENCE | YoloV8 results have no 'box', 'max' properties in it | YoloV8 results have no 'box', 'max' properties in it
I've trained a YOLOV8 model to identify objects in an intersection (ie cars, roads etc).
It is working OK and I can get the output as an image with the objects of interested segmented.
However, what I need to do is to capture the raw geometries (poly... | https://stackoverflow.com/questions/78547320/yolov8-results-have-no-box-max-properties-in-it | machine-learning, pytorch, artificial-intelligence, yolo, yolov8 | 1,716,957,121 |
se_75799722 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to deal with stack expects each tensor to be equal size eror while fine tuning GPT-2 model? | How to deal with stack expects each tensor to be equal size eror while fine tuning GPT-2 model?
I tried to fine tune a model with my personal information. So I can create a chat box where people can learn about me via chat gpt.
However, I got the error of
RuntimeError: stack expects each tensor to be equal size, but ... | https://stackoverflow.com/questions/75799722/how-to-deal-with-stack-expects-each-tensor-to-be-equal-size-eror-while-fine-tuni | python, tensorflow, artificial-intelligence, huggingface-transformers, gpt-2 | 1,679,392,888 |
se_78547756 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Custom tool for crewai im trying to build as na alternative to OpenAi API | Custom tool for crewai im trying to build as na alternative to OpenAi API
I have this code which is intended to use YoutubeChannelSearchTool with huggingface open source models, the objective is to create a custom tool to be used as an alternative to OpenAI API enablig the use of the tool without any costs while ensur... | https://stackoverflow.com/questions/78547756/custom-tool-for-crewai-im-trying-to-build-as-na-alternative-to-openai-api | python, artificial-intelligence, crewai | 1,716,965,044 |
se_78547748 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Looking for DataSet on Predicting Psychosomatic Disorders Arising from Intensive Exposure to Social Networks | Looking for DataSet on Predicting Psychosomatic Disorders Arising from Intensive Exposure to Social Networks
I'm conducting research on the prediction of psychosomatic disorders stemming from intensive exposure to social networks. I'm in need of a dataset to analyze and model this phenomenon. Could you please recommen... | https://stackoverflow.com/questions/78547748/looking-for-dataset-on-predicting-psychosomatic-disorders-arising-from-intensive | machine-learning, dataset, artificial-intelligence | 1,716,964,911 |
se_78531747 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Model Not Saving After Training in PyCharm Virtual Environment | Model Not Saving After Training in PyCharm Virtual Environment
# I'm running this python code in my pc windows 10 on PyCharm 2024 version in Virtual enviroment-----: -
`import os
import numpy as np
import librosa
import soundfile as sf
import tensorflow as tf
from tensorflow.keras.models import Model, load_model
from ... | https://stackoverflow.com/questions/78531747/model-not-saving-after-training-in-pycharm-virtual-environment | python, machine-learning, model, artificial-intelligence, checkpoint | 1,716,623,058 |
se_78545349 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I want to create API for stable diffusion outpainting | I want to create API for stable diffusion outpainting
Here is what I tried and it did not worked, I want to create some solution that will enable me to connect to my stable dyffusion model, send a img there and "make that img bigger"/outpaint that and add some bacground. In automatic1111 it is possible I want to do th... | https://stackoverflow.com/questions/78545349/i-want-to-create-api-for-stable-diffusion-outpainting | python, artificial-intelligence, stable-diffusion | 1,716,913,010 |
se_78541338 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Training data for chatGPT wont work correctly | Training data for chatGPT wont work correctly
I am trying to train a model in chatGPT (chatGPT-3.5-turbo-1106) for my cleaning business. based on the documentation I created and uploaded the training data successfully, but the answer I am getting is totally different that what I had in my training data. Here are the s... | https://stackoverflow.com/questions/78541338/training-data-for-chatgpt-wont-work-correctly | artificial-intelligence, chatgpt-api, fine-tuning | 1,716,850,145 |
se_78493080 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Which VS CODE Extension does "Auto Commit Message" comes from? | Which VS CODE Extension does "Auto Commit Message" comes from?
I can't figure out where this is coming from
Screenshot
As you can see in the image there is a button for "Auto Commit Message"
I'm not really sure which extension it's coming from or which feature I need to enable, I tried looking through Google... | https://stackoverflow.com/questions/78493080/which-vs-code-extension-does-auto-commit-message-comes-from | artificial-intelligence, vscode-extensions, autocommit, commit-message | 1,715,909,026 |
se_4577814 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pong: How does the paddle know where the ball will hit? | Pong: How does the paddle know where the ball will hit?
After implementing Pacman and Snake I'm implementing the next very very classic game: Pong.
The implementation is really simple, but I just have one little problem remaining. When one of the paddle (I'm not sure if it is called paddle) is controlled by the compu... | https://stackoverflow.com/questions/4577814/pong-how-does-the-paddle-know-where-the-ball-will-hit | algorithm, artificial-intelligence, pong | 1,293,959,942 |
se_78531851 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Chatbot using Transformer PyTorch is stuck at "I Don't Know" answer | Chatbot using Transformer PyTorch is stuck at "I Don't Know" answer
I am trying to build a ChatBot using Transformer Architecture however even after many attempts with multiple changes in the hyperparameter and model etc the model is stuck. For every input the output is "I Dont Know".
Could someone pleas... | https://stackoverflow.com/questions/78531851/chatbot-using-transformer-pytorch-is-stuck-at-i-dont-know-answer | pytorch, artificial-intelligence, chatbot | 1,716,625,296 |
se_78537007 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Training RL model with TF over all the output vector | Training RL model with TF over all the output vector
I'm training a deep RL model with TensorFlow, but my model doesn't have a single correct action. The output of the network is a vector [x1, x2], and both are actions that need to be optimized.
def train_step(self, state, reward, action):
with tf.Gra... | https://stackoverflow.com/questions/78537007/training-rl-model-with-tf-over-all-the-output-vector | tensorflow, optimization, artificial-intelligence, reinforcement-learning, gradient-descent | 1,716,778,083 |
se_3704263 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pseudocode interpreter? | Pseudocode interpreter?
Like lots of you guys on SO, I often write in several languages. And when it comes to planning stuff, (or even answering some SO questions), I actually think and write in some unspecified hybrid language. Although I used to be taught to do this using flow diagrams or UML-like diagrams, in retro... | https://stackoverflow.com/questions/3704263/pseudocode-interpreter | algorithm, language-agnostic, artificial-intelligence, interpreter, pseudocode | 1,284,410,733 |
se_78533186 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Streamlit not taking more than one prompts for cohere model in OCI Generative AI | Streamlit not taking more than one prompts for cohere model in OCI Generative AI
I am trying to use Streamlit. The first prompt works, but when I pass the second or third prompt, it is throwing this error. It was working before but has started showing this error recently. I am not sure why there was a quota limit I sh... | https://stackoverflow.com/questions/78533186/streamlit-not-taking-more-than-one-prompts-for-cohere-model-in-oci-generative-ai | python, artificial-intelligence, streamlit, large-language-model, oracle-cloud-infrastructure | 1,716,657,430 |
se_78437686 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to receive position that lead to the highest evaluated branch, when using minmax | How to receive position that lead to the highest evaluated branch, when using minmax
Right now I am programming a simple game (Capture the Flag) in Java. For creating my AiBots I decided to use minmax with alpha beta pruning. What is the best way to access the position that lead to the branch with the best evaluation ... | https://stackoverflow.com/questions/78437686/how-to-receive-position-that-lead-to-the-highest-evaluated-branch-when-using-mi | java, artificial-intelligence, alpha-beta-pruning, minmax | 1,715,009,853 |
se_78530986 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does HF Transformers run out of (GPU) memory frequently, when the same model can run fine in Ollama? | Why does HF Transformers run out of (GPU) memory frequently, when the same model can run fine in Ollama?
I can imagine Python taking more resources in general, but even with 10GB of GPU RAM, I'm unable to run inference using HF Transformers for small models like Phi3 4K.
Looking for qualitative and quantitative insigh... | https://stackoverflow.com/questions/78530986/why-does-hf-transformers-run-out-of-gpu-memory-frequently-when-the-same-model | python, pytorch, artificial-intelligence, out-of-memory, huggingface-transformers | 1,716,592,368 |
se_78530057 | stackoverflow | ARTIFICIAL_INTELLIGENCE | python - can't open directory /usr/local/hdf5/lib/plugin | python - can't open directory /usr/local/hdf5/lib/plugin
Hello everyone i've a Mac Book pro M3 and I need to open an HDF5 dataset in python, here is my code:
import h5py
import hdf5plugin
file_path = './blink.hdf5'
with h5py.File(file_path, 'r+') as h5_file:
evts = h5_file["CD"]["events"]
print(len(evts[... | https://stackoverflow.com/questions/78530057/python-cant-open-directory-usr-local-hdf5-lib-plugin | python, dataframe, artificial-intelligence, hdf5 | 1,716,573,559 |
se_78490928 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Could not find org.springframework.ai | Could not find org.springframework.ai
I'm trying to integrate Llama3 in my spring application by using the following documentation:
https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/api/chat/ollama-chat.html
When building the application with the added dependency:
implementation 'org.springframework.ai:spring-a... | https://stackoverflow.com/questions/78490928/could-not-find-org-springframework-ai | java, spring, artificial-intelligence, llama, ollama | 1,715,872,542 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.