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_78996028 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to re-train ML model | How to re-train ML model
I was playing around with AWS Sagemaker, trained a model with some labeled data, deployed it to endpoint and set up Lambda for serving predictions.
All good, but I want to re-train my model regularly, using, say, 1-week historical data.
But my historical data is unlabeled which means it cannot... | https://stackoverflow.com/questions/78996028/how-to-re-train-ml-model | tensorflow, machine-learning, artificial-intelligence, amazon-sagemaker | 1,726,613,086 |
se_75991777 | stackoverflow | ARTIFICIAL_INTELLIGENCE | For Enemy AI State Machine In Game Design, Should the State Itself Evaluate Logic to Transition to Next State? | For Enemy AI State Machine In Game Design, Should the State Itself Evaluate Logic to Transition to Next State?
I am building an Enemy AI State Machine, Where I have these scripts.
Setup
Enemy
EnemyStateManager
EnemyStateBase
States
InitialState
RoamingState
PursuingState
AttackingState
RetreatingState
When I am in... | https://stackoverflow.com/questions/75991777/for-enemy-ai-state-machine-in-game-design-should-the-state-itself-evaluate-logi | unity-game-engine, design-patterns, artificial-intelligence, state-machine, state-pattern | 1,681,271,572 |
se_78980639 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pytorch Lightning places model inputs and model to different devices | Pytorch Lightning places model inputs and model to different devices
I'm using Pytorch-lightning 2.4.0. In the following code snippet, lmm is a class inherited from nn.Module which is a wrapper class huggingface model and processor.
class ICVModel(pl.LightningModule):
def __init__(self, lmm, icv_encoder: torch.nn.... | https://stackoverflow.com/questions/78980639/pytorch-lightning-places-model-inputs-and-model-to-different-devices | python, artificial-intelligence, huggingface-transformers, pytorch-lightning | 1,726,202,201 |
se_43029589 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Recommender algorithm to recommend associated items | Recommender algorithm to recommend associated items
I have a scenario whereby I would like to provide recommendations. For simplicity sake, imagine I have database tables that hold Purchase and Purchase Item records. Each Purchase Item describes the quantities, description (shoes, pants, shirts) and then total price... | https://stackoverflow.com/questions/43029589/recommender-algorithm-to-recommend-associated-items | algorithm, machine-learning, artificial-intelligence | 1,490,536,333 |
se_78516192 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ComfyUI RIFE VFI error tried all GitHub base urls to download but no success? | ComfyUI RIFE VFI error tried all GitHub base urls to download but no success?
I'm working with https://github.com/Fannovel16/ComfyUI-Frame-Interpolation in ComfyUI and I get the following error when attempting to use the RIFE VFI node in this basic setup:
Error occurred when executing RIFE VFI:
Tried all GitHub base ... | https://stackoverflow.com/questions/78516192/comfyui-rife-vfi-error-tried-all-github-base-urls-to-download-but-no-success | artificial-intelligence, nvidia, stable-diffusion | 1,716,366,375 |
se_78976058 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Creating a data asset in Azure but getting this Error | Creating a data asset in Azure but getting this Error
I'm trying to create a ML data asset and I'm following this link: https://microsoftlearning.github.io/mslearn-ai-fundamentals/Instructions/Labs/01-machine-learning.html
to get it done but I am constantly getting this error
I know my files are not the exact ones in... | https://stackoverflow.com/questions/78976058/creating-a-data-asset-in-azure-but-getting-this-error | azure, machine-learning, artificial-intelligence | 1,726,101,032 |
se_78973811 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am using pthon mjml (https://pypi.org/project/mjml/) to convert mjml to html but converted html is not able to render background image in out look | I am using pthon mjml (https://pypi.org/project/mjml/) to convert mjml to html but converted html is not able to render background image in out look
I am using pthon mjml (https://pypi.org/project/mjml/) to convert mjml to html but converted html is not able to render background image in out look
mjml code
<mj-secti... | https://stackoverflow.com/questions/78973811/i-am-using-pthon-mjml-https-pypi-org-project-mjml-to-convert-mjml-to-html-b | python, outlook, artificial-intelligence, html-email, mjml | 1,726,057,968 |
se_78960441 | stackoverflow | ARTIFICIAL_INTELLIGENCE | LLaMA 3.1 Fine-tuning with QLoRA - CUDA Out of Memory Error | LLaMA 3.1 Fine-tuning with QLoRA - CUDA Out of Memory Error
I'm trying to fine-tune the LLaMA 3.1 8 billion parameters model using the QLoRA technique with the help of the 4-bit bitsandbytes library on a mental health conversations dataset from Hugging Face. However, when I run the code, I'm encountering a torch.cuda.... | https://stackoverflow.com/questions/78960441/llama-3-1-fine-tuning-with-qlora-cuda-out-of-memory-error | nlp, artificial-intelligence, large-language-model, llama, fine-tuning | 1,725,721,026 |
se_78911806 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Trying to build scream detection using pretrained model | Trying to build scream detection using pretrained model
I have been wondering why does “smart” phone need elaborate manual steps to trigger SOS, when it already has enough inputs to detect panic like mic, camera, gps, gyroscope, etc.
I found this model (padmalcom/wav2vec2-large-nonverbalvocalization-classification) th... | https://stackoverflow.com/questions/78911806/trying-to-build-scream-detection-using-pretrained-model | artificial-intelligence, huggingface-transformers, audio-processing | 1,724,606,012 |
se_56812087 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how to use a neural network to learn a matrix transformation? | how to use a neural network to learn a matrix transformation?
Given an input image, predict an output image that has been altered by some matrix transformation.
The important part is given an input image the network has not seen before, be able to perform the same matrix transformation on that input image as if we pe... | https://stackoverflow.com/questions/56812087/how-to-use-a-neural-network-to-learn-a-matrix-transformation | matrix, keras, neural-network, computer-vision, artificial-intelligence | 1,561,748,765 |
se_78963254 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Trying to get the CodiumAI plug in to work in IntelliJ | Trying to get the CodiumAI plug in to work in IntelliJ
I have the CodiumAI plugin installed, but I am only seeing what appears to be the Codiumate Tests.
Am I missing something?
I have my program in the middle screen. Codiumate is in the right third of the screen. I am trying to get to someplace that can write code ... | https://stackoverflow.com/questions/78963254/trying-to-get-the-codiumai-plug-in-to-work-in-intellij | java, intellij-idea, artificial-intelligence | 1,725,827,241 |
se_6368618 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Store orientation to an array - and compare | Store orientation to an array - and compare
I want to achieve the following:
I want the user to be able to "record" the movement of the iPhone using the gyroscope. And after that, the user should be able to replicate the same movement. I extract the pitch, roll and yaw using:
[self.motionManager startDeviceMotionUp... | https://stackoverflow.com/questions/6368618/store-orientation-to-an-array-and-compare | iphone, android, math, artificial-intelligence, gesture-recognition | 1,308,210,190 |
se_13649646 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What kind of algorithm is behind the Akinator game? | What kind of algorithm is behind the Akinator game?
It always amazed me how the Akinator app could guess a character by asking just several questions. So I wonder what kind of algorithm or method let it do that? Is there a name for that class of algorithms and where can I read more about them? | https://stackoverflow.com/questions/13649646/what-kind-of-algorithm-is-behind-the-akinator-game | algorithm, statistics, machine-learning, artificial-intelligence | 1,354,294,778 |
se_78951976 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Slow GPT4All with Python SDK | Slow GPT4All with Python SDK
I'm trying to run some analysis on thousands of text files, and I would like to use gtp4all (In python) to provide some responses. I've been trying to use the model on a sample text file here.
Here's my code:
llama_path = r"C:\Users\User\AppData\Local\nomic.ai\GPT4All\Meta-Llama-3.1-8B-Ins... | https://stackoverflow.com/questions/78951976/slow-gpt4all-with-python-sdk | python, nlp, artificial-intelligence, large-language-model, gpt4all | 1,725,524,340 |
se_78952522 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to extract information from a photo of a document | How to extract information from a photo of a document
I want to build a simple tool that will allow a user to take a photo of a document and extract information such as date/time and some other information
It is simple to do this through Chat GPT's UI, upload an image, ask it for some information from the document. Bu... | https://stackoverflow.com/questions/78952522/how-to-extract-information-from-a-photo-of-a-document | artificial-intelligence, openai-api, large-language-model | 1,725,531,769 |
se_78952318 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Tic tac toe game blocking player moves with minimax algorithm implementation | Tic tac toe game blocking player moves with minimax algorithm implementation
I've implemented the minimax algorithm to this tic tac toe game, and it's working well so far in terms of "Knowing how to win". However, the computer still can't figure out how to prevent me from winning it doesn't see threats that I make it'... | https://stackoverflow.com/questions/78952318/tic-tac-toe-game-blocking-player-moves-with-minimax-algorithm-implementation | algorithm, artificial-intelligence, tic-tac-toe, minimax | 1,725,529,021 |
se_76765834 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to connect LLM to Multiple SQL database with LangChain SQLChain | How to connect LLM to Multiple SQL database with LangChain SQLChain
I want to connect LLM to more than 2 SQL database with SQLDatabaseChain. Please let me know if it is possible or any other way.
I have connected to 1 DB and able to work. But I need to connect to more than 1 DB and its table | https://stackoverflow.com/questions/76765834/how-to-connect-llm-to-multiple-sql-database-with-langchain-sqlchain | artificial-intelligence, langchain, large-language-model | 1,690,312,195 |
se_78507089 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ComfyUI KSampler step is too slow. Is it normal? | ComfyUI KSampler step is too slow. Is it normal?
I am using AnimateDiff in ComfyUI to output videos, but the speed feels very slow.
I am wondering if this is normal.
Below are the details of my work environment.
input img frames
10~60
(KSampler speed 120~830s/it)
checkpoint model
wildcardTURBO_sdxl, anythingXL
LoR... | https://stackoverflow.com/questions/78507089/comfyui-ksampler-step-is-too-slow-is-it-normal | gpu, artificial-intelligence, nvidia, stable-diffusion | 1,716,214,267 |
se_78935458 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I recover the object detected by yolov8 in my code? | How can I recover the object detected by yolov8 in my code?
I need to retrieve the objects detected by my yolo model but I haven't found any command to do so.
I work with this code:
from ultralytics import YOLO
model = YOLO("/media/aceryohan/_Yohan/Pycharm projects/myfirstproject/computer vision/best.pt")
results = ... | https://stackoverflow.com/questions/78935458/how-can-i-recover-the-object-detected-by-yolov8-in-my-code | python, artificial-intelligence, ubuntu-22.04, yolov8 | 1,725,116,823 |
se_78926187 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Unable to import pipeline with crewai | Unable to import pipeline with crewai
I am unable to import pipeline, I am following exactly as documented in docs.crewai.com I am using python 3.12.4 in virtual environment
from crewai import Pipeline
Import error: cannot import name Pipeline from crewai
How to fix it? | https://stackoverflow.com/questions/78926187/unable-to-import-pipeline-with-crewai | python, artificial-intelligence, crewai | 1,724,908,161 |
se_78171698 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Issue encountered with the history parameter in the Gemini AI integration within a Node.js environment | Issue encountered with the history parameter in the Gemini AI integration within a Node.js environment
I copied and pasted the Gemini document directly into my Node.js server, and I encountered an error related to the history parameter.
{"error": "Cannot use 'in' operator to search for 'text' in H"}
However, the oper... | https://stackoverflow.com/questions/78171698/issue-encountered-with-the-history-parameter-in-the-gemini-ai-integration-within | node.js, artificial-intelligence, chatbot, google-gemini | 1,710,591,197 |
se_49788284 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to make Goalkeeper follow the football in Unity 3D | How to make Goalkeeper follow the football in Unity 3D
I am new to Unity3D game development. I am creating a penalty shootout game in Unity3D and I am using C# for the scripting. I have already created all the basic functionalities like kicking the ball, added 3D objects of the players and now I am working on goalkeep... | https://stackoverflow.com/questions/49788284/how-to-make-goalkeeper-follow-the-football-in-unity-3d | c#, unity-game-engine, artificial-intelligence, game-engine | 1,523,509,001 |
se_78933578 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Errors while trying to install gym-retro on vs code | Errors while trying to install gym-retro on vs code
I installed retro and made update for those pip install --upgrade setuptools_scm
and pip install --upgrade setuptools wheel
and I already have vs installer 2019 but I downloaded also 2022 but also didn't work this error appears:
pip install --use-pep517 gym-retro
>>
... | https://stackoverflow.com/questions/78933578/errors-while-trying-to-install-gym-retro-on-vs-code | python, dependencies, artificial-intelligence | 1,725,047,737 |
se_78625475 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Understanding usage of HiFi-GAN by Vits | Understanding usage of HiFi-GAN by Vits
I'm (trying to) learn AI/ML for speech synthesis and trying to undestand how HiFi-GAN is used by Vits.
From my understanding, Vits will convert text input into mel spectograms which is then converted to audio waves by HiFi-GAN.
What confuses me is why the input sent from Vits to... | https://stackoverflow.com/questions/78625475/understanding-usage-of-hifi-gan-by-vits | machine-learning, pytorch, artificial-intelligence, text-to-speech | 1,718,417,856 |
se_78926958 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Adding vectorized data to an AI chatbot in Python | Adding vectorized data to an AI chatbot in Python
I'm trying to add vectorized data (file format .npz) to my Azure OpenAI chatbot in order to make it generate answers based on this data.
The thing is I tried watching various videos but none helped me in any way.
import os
import numpy as np
import faiss
from dotenv im... | https://stackoverflow.com/questions/78926958/adding-vectorized-data-to-an-ai-chatbot-in-python | python, database, artificial-intelligence, vectorization, chatbot | 1,724,922,136 |
se_78909848 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to generate .tflite models form Qualcomm AI Hub Models | How to generate .tflite models form Qualcomm AI Hub Models
I have a Qualcomm device and I want to deploy LLMs on it. I want to get .tflite model. I downloaded an Android app from Google AI which can deploy tensorflow lite models, while it only accepts .tflite file. And I cannot find a website to directly download .tfl... | https://stackoverflow.com/questions/78909848/how-to-generate-tflite-models-form-qualcomm-ai-hub-models | android, artificial-intelligence, large-language-model, tflite, qualcomm | 1,724,528,149 |
se_78862219 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure Bot: Failed to acquire token for client credentials | Azure Bot: Failed to acquire token for client credentials
I have hosted Azure Bot and AppService connected to it. With MicrosoftType = MultiTenant, everything worked fine. After that I decided to add MicrosoftType = UserAssignedMSI with Managed Identity. Unfortunately locally it's cannot be debugged properly. I receiv... | https://stackoverflow.com/questions/78862219/azure-bot-failed-to-acquire-token-for-client-credentials | c#, azure-web-app-service, artificial-intelligence, azure-bot-service, azure-managed-identity | 1,723,473,119 |
se_37953585 | stackoverflow | ARTIFICIAL_INTELLIGENCE | SGD(Stochastic Gradient Descent) vs Backpropagation | SGD(Stochastic Gradient Descent) vs Backpropagation
Can you please tell me the difference between Stochastic Gradient Descent(SGD) and Backpropagation? | https://stackoverflow.com/questions/37953585/sgdstochastic-gradient-descent-vs-backpropagation | machine-learning, deep-learning, artificial-intelligence, gradient-descent, backpropagation | 1,466,539,359 |
se_59932978 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Which One is Faster either GRU or LSTM | Which One is Faster either GRU or LSTM
I tried to implement a model on keras with GRUs and LSTMs. The model architecture is same for both the implementations. As I read in many blog posts the inference time for GRU is faster compared to LSTM. But in my case the GRU is not faster and infact comparitively slower with re... | https://stackoverflow.com/questions/59932978/which-one-is-faster-either-gru-or-lstm | machine-learning, keras, artificial-intelligence, lstm, gated-recurrent-unit | 1,580,134,872 |
se_31155388 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What is an Epoch in Neural Networks Training | What is an Epoch in Neural Networks Training
While I'm reading in how to build ANN in pybrain, they say:
Train the network for some epochs. Usually you would set something
like 5 here,
trainer.trainEpochs( 1 )
I looked for what is that mean , then I conclude that we use an epoch of data to update weights, If I choo... | https://stackoverflow.com/questions/31155388/what-is-an-epoch-in-neural-networks-training | machine-learning, deep-learning, neural-network, artificial-intelligence, pybrain | 1,435,736,646 |
se_78907434 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Need help verifying data provided by google/machine-learning course | Need help verifying data provided by google/machine-learning course
In the gradient descent page on the intro to machine-learning course provided by google provided are features and corresponding labels, MSE loss function, initial datasets, and results. I am having difficulty verifying the results that they have and I... | https://stackoverflow.com/questions/78907434/need-help-verifying-data-provided-by-google-machine-learning-course | python, machine-learning, artificial-intelligence | 1,724,443,754 |
se_29429252 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to solve logistic regression using gradient Descent? | How to solve logistic regression using gradient Descent?
I was solving a exercise of a online course form coursera on machine learning. The problem statement is :
Suppose that a high school has a dataset representing 40 students who were admitted to college and 40 students who were not admitted. Each ( x(i), y(i) ) tr... | https://stackoverflow.com/questions/29429252/how-to-solve-logistic-regression-using-gradient-descent | artificial-intelligence, octave, logistic-regression, gradient-descent | 1,428,052,032 |
se_78902349 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Control Length of Response of LLM Model | Control Length of Response of LLM Model
Tried: Create a Prompt that would make my model answer in 30 words or less.
Received: Sometimes short, sometimes long answer.
Expcted: Consistent short words even when using RAG.
I'm trying to create an english tutor chatbot that will produce answers with 30 or less words using ... | https://stackoverflow.com/questions/78902349/control-length-of-response-of-llm-model | artificial-intelligence, prompt, large-language-model, amazon-bedrock, claude | 1,724,340,115 |
se_78883811 | stackoverflow | ARTIFICIAL_INTELLIGENCE | command on virtual env. pip install clarifai.work on windows Import "clarifai.rest"could not be resolvedPylancereportMissingImports (module) clarifai | command on virtual env. pip install clarifai.work on windows Import "clarifai.rest"could not be resolvedPylancereportMissingImports (module) clarifai
i am working in clarifai. i installed clarifai on my windows as pip install clarifai.
when i wrote from clarifai.rest import ClarifaiApp it is showing error. c... | https://stackoverflow.com/questions/78883811/command-on-virtual-env-pip-install-clarifai-work-on-windows-import-clarifai-re | artificial-intelligence, clarifai | 1,723,959,899 |
se_60439570 | stackoverflow | ARTIFICIAL_INTELLIGENCE | PyTorch - RuntimeError: shape '[16, 400]' is invalid for input of size 9600 | PyTorch - RuntimeError: shape '[16, 400]' is invalid for input of size 9600
I'm trying to build a CNN but I get this error:
---> 52 x = x.view(x.size(0), 5 * 5 * 16)
RuntimeError: shape '[16, 400]' is invalid for input of size 9600
It's not clear for me what the inputs of the 'x.view' line should be. ... | https://stackoverflow.com/questions/60439570/pytorch-runtimeerror-shape-16-400-is-invalid-for-input-of-size-9600 | python, pytorch, neural-network, conv-neural-network, artificial-intelligence | 1,582,828,060 |
se_64192810 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Runtime Error : both arguments to matmul need to be at least 1d but they are 0d and 2d | Runtime Error : both arguments to matmul need to be at least 1d but they are 0d and 2d
This is the code I have written, I have tried modifying here and there and have always gotten the same error. As I am a beginner to PyTorch, I am just trying things out to see if machine learning will work on a linear dataset. So, w... | https://stackoverflow.com/questions/64192810/runtime-error-both-arguments-to-matmul-need-to-be-at-least-1d-but-they-are-0d | python, pytorch, runtime-error, artificial-intelligence, matmul | 1,601,802,169 |
se_78894529 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Using Audio in the Gemini API | Using Audio in the Gemini API
I am trying to use the Gemini API using the Swift SDK but also using URLSession to process audio as inline data.
let fileData = try Data(contentsOf: fileUrl)
let model = GenerativeModel(name: "gemini-1.5-flash", apiKey: apiKey)
let response = try await model.generateContent([
ModelCon... | https://stackoverflow.com/questions/78894529/using-audio-in-the-gemini-api | swift, artificial-intelligence, google-gemini | 1,724,191,528 |
se_76549650 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Could not find the Qt platform plugin "wayland" | Could not find the Qt platform plugin "wayland"
import cv2
trained_face_data = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")
img = cv2.imread('John.jpeg')
grayscaled_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
face_coordinates = trained_face_data.detectMultiScale(graysc... | https://stackoverflow.com/questions/76549650/could-not-find-the-qt-platform-plugin-wayland | python, opencv, artificial-intelligence | 1,687,683,559 |
se_70279287 | stackoverflow | ARTIFICIAL_INTELLIGENCE | RuntimeError: expected scalar type Long but found Float (Pytorch) | RuntimeError: expected scalar type Long but found Float (Pytorch)
I've tried many times to fix, also I've used the example codes from functional.py then I got my same "loss" value. How can I fix this?
My libraries:
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import numpy as np
import matplotlib... | https://stackoverflow.com/questions/70279287/runtimeerror-expected-scalar-type-long-but-found-float-pytorch | python, machine-learning, deep-learning, pytorch, artificial-intelligence | 1,638,984,551 |
se_78883470 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is it fine to make an API call inside a reinforcement learning program? | Is it fine to make an API call inside a reinforcement learning program?
I have made a game simulation with rest of the API available, and I would like to create a reinforcement learning AI in Python using gym from OpenAI.
So, is it fine to make API calls inside the step function in my custom gym environment? Won't it ... | https://stackoverflow.com/questions/78883470/is-it-fine-to-make-an-api-call-inside-a-reinforcement-learning-program | python, artificial-intelligence, openai-gym, gymnasium | 1,723,938,120 |
se_78091527 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Code of CURL of Gemini AI API in C# .Net Framework | Code of CURL of Gemini AI API in C# .Net Framework
I am developing a window app in c# .net framework about making ai using Google Gemini API. And I read the documentation of google gemini api over 10 times in CURL. With some help of ChatGPT, I wrote some codes in C#. And here what is looks like:
using System;
using Sy... | https://stackoverflow.com/questions/78091527/code-of-curl-of-gemini-ai-api-in-c-net-framework | c#, .net, curl, artificial-intelligence, google-gemini | 1,709,355,973 |
se_78882055 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I return the current AIMessage content using next.js and ChatGroq | How do I return the current AIMessage content using next.js and ChatGroq
I'm using ChatGroq and it seems to work well, it answers my relevant question, but the right answer is saved in model.invoke response, and the console shows some other answer. I try to return the correct answer in a next.js form, but I am unable ... | https://stackoverflow.com/questions/78882055/how-do-i-return-the-current-aimessage-content-using-next-js-and-chatgroq | next.js, artificial-intelligence, groq | 1,723,893,204 |
se_78391063 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am facing ImportError: cannot import name 'LlamaCPP' from 'llama_index.llms' (unknown location) while implementing this | I am facing ImportError: cannot import name 'LlamaCPP' from 'llama_index.llms' (unknown location) while implementing this
I am facing ImportError: cannot import name 'LlamaCPP' from 'llama_index.llms' (unknown location) while implementing
and ModuleNotFoundError: No module named 'llama_index.llms.llama... | https://stackoverflow.com/questions/78391063/i-am-facing-importerror-cannot-import-name-llamacpp-from-llama-index-llms | python, artificial-intelligence, chatbot, llama, llama-cpp-python | 1,714,140,747 |
se_78877667 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Top-p sampling not working. CUDA error: device-side assert triggered | Top-p sampling not working. CUDA error: device-side assert triggered
I was trying to re-implement the model.generate() function of transformers' models from huggingface. I did that so I could implement logit-bias, that normal function does not allow. But before I could reach that, I encountered a lot of problems with ... | https://stackoverflow.com/questions/78877667/top-p-sampling-not-working-cuda-error-device-side-assert-triggered | pytorch, artificial-intelligence, huggingface-transformers, sampling, logits | 1,723,784,765 |
se_78869745 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Deserializing Error when loading models from '.keras' files in Keras 3, possible issue with dense layers | Deserializing Error when loading models from '.keras' files in Keras 3, possible issue with dense layers
I'm in the process of migrating to Keras 3. My current version is TensorFlow v2.17.0, and Keras v3.4.1.
I'm testing a bunch of VAE model configurations, which requires me to save these models and load them ... | https://stackoverflow.com/questions/78869745/deserializing-error-when-loading-models-from-keras-files-in-keras-3-possible | tensorflow, machine-learning, keras, artificial-intelligence | 1,723,622,315 |
se_76122538 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Generate alt texts for upload images with AI in TYPO3? | Generate alt texts for upload images with AI in TYPO3?
I am searching for a way to automatically generate alt texts for images when uploading them in the TYPO3 backend? Is there any extension that can do this, or similar extensions for generating alt texts (probably based on AI)?
I am glad about every tip or recommend... | https://stackoverflow.com/questions/76122538/generate-alt-texts-for-upload-images-with-ai-in-typo3 | image, text, typo3, artificial-intelligence, alt-attribute | 1,682,611,717 |
se_78754885 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure Communication Services: Our services aren't available right now We're working to restore all services as soon as possible Please check back soon | Azure Communication Services: Our services aren't available right now We're working to restore all services as soon as possible Please check back soon
I am trying to use Azure Communication Services to create a user identity and then fetch relay configuration for network traversal.
Here is the code:
const { Co... | https://stackoverflow.com/questions/78754885/azure-communication-services-our-services-arent-available-right-now-were-work | azure, artificial-intelligence, azure-communication-services | 1,721,136,794 |
se_78867537 | stackoverflow | ARTIFICIAL_INTELLIGENCE | From single message two different entity is extracting | From single message two different entity is extracting
I want to extract address and high school from the message. And when I write Boston High School. RegexEntityExtractor extract Boston has location and Diet classifier classify it as high which is correct. I have lookup table for citites and countries which is locat... | https://stackoverflow.com/questions/78867537/from-single-message-two-different-entity-is-extracting | artificial-intelligence, rasa, rasa-nlu, rasa-sdk | 1,723,568,910 |
se_78462357 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use Spacy-PyTextRank in newer versions? | How to use Spacy-PyTextRank in newer versions?
I'm trying to do key phrase extraction with TextRank, I have installed 3.3.0 version, nltk and the en_core_web_trf are on 3.7.3, i dont know if this is the problem.
This is the error that I got
import pytextrank
nlp=spacy.load('en_core_web_trf')
nlp.add_pipe("textrank")
... | https://stackoverflow.com/questions/78462357/how-to-use-spacy-pytextrank-in-newer-versions | python, nlp, artificial-intelligence, spacy, textrank | 1,715,371,912 |
se_78864224 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does ram memory increase in idle stage? | Why does ram memory increase in idle stage?
I am deployed a milvus-standalond in docker.
Issue is i do nothing in milvus still milvus use cpu 5 to 6% continuously and ram is consumed continuously like reach 300 mb to 390 mb in duration of half hour.
Language is python
Milvus version 2.4.6
Code is write from (write ver... | https://stackoverflow.com/questions/78864224/why-does-ram-memory-increase-in-idle-stage | memory, artificial-intelligence, vector-database | 1,723,518,405 |
se_78860591 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Having trouble storing collection metadata apart from using an external database | Having trouble storing collection metadata apart from using an external database
It looks like there is not a practical way to store some metadata for a collection, which is something I would like to do.
System properties are stored in the 'properties' field; unfortunately, Milvus does not support the Collection.get_p... | https://stackoverflow.com/questions/78860591/having-trouble-storing-collection-metadata-apart-from-using-an-external-database | collections, artificial-intelligence, vector-database | 1,723,449,943 |
se_75159444 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pytorch Loading a custom dataset | Pytorch Loading a custom dataset
Hey I've been seatching around the web looking for help on importing a custom image set, but every good tutorial seems to just MNIST which is fine, but I dont know how to translate code to a custom set.
I've got a folder structure like this:
SET:
|-->Training
-----|-->A
---------|-->80... | https://stackoverflow.com/questions/75159444/pytorch-loading-a-custom-dataset | python, pytorch, artificial-intelligence, generative-adversarial-network, dataloader | 1,674,045,988 |
se_78343977 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Gemini API not giving output when the input is a question and longer then 5 words and if it's not a question and longer then 7 | Gemini API not giving output when the input is a question and longer then 5 words and if it's not a question and longer then 7
I am attempting to make a website to talk to Cyrus the Great. I have set up Gemini to respond to any input as if it's Cyrus the Great but when testing it I have encountered a unusual probl... | https://stackoverflow.com/questions/78343977/gemini-api-not-giving-output-when-the-input-is-a-question-and-longer-then-5-word | javascript, artificial-intelligence, google-gemini | 1,713,392,024 |
se_77293859 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Speechmatics - Getting API key error after I add some configurations | Speechmatics - Getting API key error after I add some configurations
My code runs for the simple configuration below:
from speechmatics.models import ConnectionSettings
from speechmatics.batch_client import BatchClient
from httpx import HTTPStatusError
AUTH_TOKEN = "YOUR_API_KEY"
PATH_TO_FILE = "example.wav"
LANGUAG... | https://stackoverflow.com/questions/77293859/speechmatics-getting-api-key-error-after-i-add-some-configurations | python, artificial-intelligence, openai-api, openai-whisper | 1,697,304,862 |
se_78843382 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Handling greet type of questions without llm in RAG | Handling greet type of questions without llm in RAG
I'm implementing a Retrieval-Augmented Generation (RAG) system for a chatbot that handles a variety of user queries. While RAG is primarily designed to provide informative responses by retrieving relevant documents and generating responses using a language model (LLM... | https://stackoverflow.com/questions/78843382/handling-greet-type-of-questions-without-llm-in-rag | machine-learning, artificial-intelligence, large-language-model | 1,723,029,471 |
se_78845835 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does LSTM Model and FGSM Attack Implementation in TensorFlow: Shape Mismatch Errors occur when Sequential() call? | Why does LSTM Model and FGSM Attack Implementation in TensorFlow: Shape Mismatch Errors occur when Sequential() call?
I'm working on a project to implement an FGSM (Fast Gradient Sign Method) attack on an LSTM model for stock price prediction using TensorFlow and Keras. Despite my efforts, I'm encountering persistent ... | https://stackoverflow.com/questions/78845835/why-does-lstm-model-and-fgsm-attack-implementation-in-tensorflow-shape-mismatch | python-3.x, tensorflow, keras, artificial-intelligence, lstm | 1,723,068,099 |
se_76388727 | stackoverflow | ARTIFICIAL_INTELLIGENCE | 'cannot move location counter backwards' error on arduino | 'cannot move location counter backwards' error on arduino
I'm making face recognizer using arduino 33 ble board and teachble machine.
On the teacheble machine website, i put 10 pictures in class 1, 3 pictures in class 2, 5 pictures in class 3.
After model training, extracted files on tensorFlowLite tap, with T... | https://stackoverflow.com/questions/76388727/cannot-move-location-counter-backwards-error-on-arduino | c++, tensorflow, memory, arduino, artificial-intelligence | 1,685,697,070 |
se_77637574 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure AI Video Indexer | Azure AI Video Indexer
I am following the sample code at https://github.com/Azure-Samples/media-services-video-indexer/blob/master/API-Samples/C%23/Classic/sampleCode.cs to get started with Azure AI Video Indexer.
It has the following parameters to be setup in the code:
var apiKey = "API_KEY"; // replace with API key ... | https://stackoverflow.com/questions/77637574/azure-ai-video-indexer | azure, artificial-intelligence, azure-video-indexer | 1,702,271,329 |
se_78841085 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does 4-layer feed_forward_network regression predict a fixed number for all test samples? | Why does 4-layer feed_forward_network regression predict a fixed number for all test samples?
I built a 4-layer feed forward network. However the prediction for the test sample are all the same.They are a fixed number. I have standardized the data into [-1,1]. I am not sure if there is something wrong with my code.
my... | https://stackoverflow.com/questions/78841085/why-does-4-layer-feed-forward-network-regression-predict-a-fixed-number-for-all | python, tensorflow, keras, neural-network, artificial-intelligence | 1,722,980,006 |
se_38250558 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Should the neurons in a neural network be asynchronous? | Should the neurons in a neural network be asynchronous?
I am designing a neural network and am trying to determine if I should write it in such a way that each neuron is its own 'process' in Erlang, or if I should just go with C++ and run a network in one thread (I would still use all my cores by running an instance o... | https://stackoverflow.com/questions/38250558/should-the-neurons-in-a-neural-network-be-asynchronous | machine-learning, erlang, neural-network, artificial-intelligence | 1,467,908,263 |
se_78841275 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What are Tokens, Top K and Top P? | What are Tokens, Top K and Top P?
I'm learning to use Google AI Studio and when generating the snippet I came across these terms:
const generationConfig = {
temperature: 1,
topP: 0.95,
topK: 64,
maxOutputTokens: 8192,
responseMimeType: "text/plain",
};
I'm struggling to understand what those terms mean. Wha... | https://stackoverflow.com/questions/78841275/what-are-tokens-top-k-and-top-p | machine-learning, deep-learning, artificial-intelligence, google-gemini | 1,722,984,928 |
se_60003006 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Could validation data be a generator in tensorflow.keras 2.0? | Could validation data be a generator in tensorflow.keras 2.0?
In official documents of tensorflow.keras,
validation_data could be: tuple (x_val, y_val) of Numpy arrays or tensors
tuple (x_val, y_val, val_sample_weights) of Numpy arrays
dataset For the first two cases, batch_size must be provided. For the last... | https://stackoverflow.com/questions/60003006/could-validation-data-be-a-generator-in-tensorflow-keras-2-0 | python, tensorflow, keras, artificial-intelligence | 1,580,470,021 |
se_14263616 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Cricket as a state machine | Cricket as a state machine
I'm creating a cricket manager stats game. I need to create a ball-by-ball simulation of the game. The game/ball outcome will be influenced by player stats and other external factors like weather or chosen tactics.
I've been reading around that most of the games can be implemented as a sta... | https://stackoverflow.com/questions/14263616/cricket-as-a-state-machine | artificial-intelligence, simulation, game-engine, state-machine | 1,357,838,497 |
se_77473078 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how can I stream a response from a language model to Google Chat? | how can I stream a response from a language model to Google Chat?
i implemented a Chat Bot using a http-endpoint like described here https://developers.google.com/chat/quickstart/gcf-app
With this, you can return a message as response:
res.send({
text: 'Hi user!',
})
Many language models can stream their response. ... | https://stackoverflow.com/questions/77473078/how-can-i-stream-a-response-from-a-language-model-to-google-chat | artificial-intelligence, chatbot, google-chat | 1,699,869,939 |
se_78767930 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Does a model from LM Studio learn? | Does a model from LM Studio learn?
I just started with local AI models, my question is if I download a model and ask for a task and correct it, does the model remember the correction for the next time, I meant, is it growing in knowledge? | https://stackoverflow.com/questions/78767930/does-a-model-from-lm-studio-learn | model, artificial-intelligence, lm-studio | 1,721,372,176 |
se_78824535 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to implement bind_tools function in custom chat model | How to implement bind_tools function in custom chat model
I am trying to build a agent which uses a custom LLM (eg llama-3) and have tool calling capability. I have build my own CustomChatModel class which inherits from BaseChatModel class. I have implemented my own _generate() function. For the bind_tools() function ... | https://stackoverflow.com/questions/78824535/how-to-implement-bind-tools-function-in-custom-chat-model | python, artificial-intelligence, langchain, large-language-model, llama | 1,722,588,004 |
se_48597605 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to build a custom chatbot with custom voice? | How to build a custom chatbot with custom voice?
Basically I wanted to build a chatbot with voice. But I wanted the voice to be custom. I checked over the link:
https://www.sitepoint.com/how-to-build-your-own-ai-assistant-using-api-ai/
https://dialogflow.com/
The above links say how to build a chatbot but it does not ... | https://stackoverflow.com/questions/48597605/how-to-build-a-custom-chatbot-with-custom-voice | artificial-intelligence, voice-recognition, chatbot | 1,517,662,614 |
se_63129375 | stackoverflow | ARTIFICIAL_INTELLIGENCE | If you want to develop a voice assistant, which language would you use? | If you want to develop a voice assistant, which language would you use?
I am trying to develop a voice assistant, but I am confused on which language to use.
I want the app to work properly on both windows and android.
If you have any suggestions please post them. | https://stackoverflow.com/questions/63129375/if-you-want-to-develop-a-voice-assistant-which-language-would-you-use | artificial-intelligence, text-to-speech, voice, assistant | 1,595,922,632 |
se_78816015 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to free webgpu gpu mem in onnxruntime web | How to free webgpu gpu mem in onnxruntime web
I use onnxruntime web with following code
/**
*
* @param model don't pass session but pass model path and create session in infer inner. In this way, after infer finish, it will auto free gpu mem to prevent mem overflow
* @param inputTensor
*/
export async function inf... | https://stackoverflow.com/questions/78816015/how-to-free-webgpu-gpu-mem-in-onnxruntime-web | javascript, artificial-intelligence, onnx, onnxruntime | 1,722,425,049 |
se_12806452 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What's the difference between uniform-cost search and Dijkstra's algorithm? | What's the difference between uniform-cost search and Dijkstra's algorithm?
I was wondering what's the difference between uniform-cost search and Dijkstra's algorithm. They seem to be the same algorithm. | https://stackoverflow.com/questions/12806452/whats-the-difference-between-uniform-cost-search-and-dijkstras-algorithm | graph, artificial-intelligence | 1,349,808,426 |
se_76187823 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to host tensorflow model online | How to host tensorflow model online
I'm trying to serve an ML Model as REST API using TensorFlow Serving. I want to know whether there's a way to host the model online rather than locally?
I need to host a ML model where there's a mapping going with a string id when doing predictions. The model is a .h5 file. The prog... | https://stackoverflow.com/questions/76187823/how-to-host-tensorflow-model-online | android, docker, github, machine-learning, artificial-intelligence | 1,683,360,579 |
se_78810649 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Tensorboard failed to load runs only in time series tab | Tensorboard failed to load runs only in time series tab
I'm building models using pytorch on Ubuntu platform. I use tensorboard (torch.utils.tensorboard / tensorboardX) to log training informations. I access these logs on windows Chrome browser. Scalars, histograms, etc. are showing normally, but timeseries shows noth... | https://stackoverflow.com/questions/78810649/tensorboard-failed-to-load-runs-only-in-time-series-tab | deep-learning, pytorch, artificial-intelligence, tensorboard | 1,722,329,160 |
se_78811623 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OPENSSL_internal:CERTIFICATE_VERIFY_FAILED error when vector_store retriever is invoked | OPENSSL_internal:CERTIFICATE_VERIFY_FAILED error when vector_store retriever is invoked
I'm in the midst of developing Genai app with
private data stored in vertex ai vector db
llm as gpt4
langhain as orchestrator
When I invoke vector_store retriever I get error:
OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
The vec... | https://stackoverflow.com/questions/78811623/openssl-internalcertificate-verify-failed-error-when-vector-store-retriever-is | artificial-intelligence, langchain, google-cloud-vertex-ai, vertex-ai-search, vectorstore | 1,722,341,321 |
se_64048720 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pytorch Unfold and Fold: How do I put this image tensor back together again? | Pytorch Unfold and Fold: How do I put this image tensor back together again?
I am trying to filter a single channel 2D image of size 256x256 using unfold to create 16x16 blocks with an overlap of 8. This is shown below:
# I = [256, 256] image
kernel_size = 16
stride = bx/2
patches = I.unfold(1, kernel_size,
int(strid... | https://stackoverflow.com/questions/64048720/pytorch-unfold-and-fold-how-do-i-put-this-image-tensor-back-together-again | python, machine-learning, pytorch, computer-vision, artificial-intelligence | 1,600,958,041 |
se_69461403 | stackoverflow | ARTIFICIAL_INTELLIGENCE | The function "hog.detectMultiScale(frame)" doesn't return any thing | The function "hog.detectMultiScale(frame)" doesn't return any thing
I wrote this and it works. but the last function (hog.detectMultiScale) doesn't return any thing. I don't know why.
'''
import numpy as np
import cv2
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector... | https://stackoverflow.com/questions/69461403/the-function-hog-detectmultiscaleframe-doesnt-return-any-thing | python, opencv, image-processing, artificial-intelligence, histogram-of-oriented-gradients | 1,633,504,888 |
se_78790401 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I track a contour from my previous image? | How do I track a contour from my previous image?
So I have a video of bacterial cells moving around which I converted to frames. Now I want to find the instantaneous velocity of each bacterial cells. For this I am interested in finding by how much a bacterial cell moved but I dont know how to tell my programme to accu... | https://stackoverflow.com/questions/78790401/how-do-i-track-a-contour-from-my-previous-image | python, opencv, machine-learning, computer-vision, artificial-intelligence | 1,721,852,065 |
se_78802566 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Detect Objects & Gaps In A Shelf While Analyzing Shelf images using Pretrained Model of Azure Vision AI | Detect Objects & Gaps In A Shelf While Analyzing Shelf images using Pretrained Model of Azure Vision AI
I am doing SHELF PRODUCT RECOGNITION wherein the webApp (built using flask) analyzes shelf images using pretrained model of Azure Vision AI. I have using an Azure VM instance for this.
I need to detect Objects a... | https://stackoverflow.com/questions/78802566/detect-objects-gaps-in-a-shelf-while-analyzing-shelf-images-using-pretrained-m | python, azure, machine-learning, flask, artificial-intelligence | 1,722,118,446 |
se_70343791 | stackoverflow | ARTIFICIAL_INTELLIGENCE | pytorch faster r-cnn, no bounding box image return value error(all bounding boxes should have positive height and width) | pytorch faster r-cnn, no bounding box image return value error(all bounding boxes should have positive height and width)
I'm trying to train Faster R-CNN on custom dataset.
When I train with no object image(image without bounding boxes), it returns value error 'All bounding boxes should have positive height and width'... | https://stackoverflow.com/questions/70343791/pytorch-faster-r-cnn-no-bounding-box-image-return-value-errorall-bounding-boxe | python, pytorch, computer-vision, artificial-intelligence, faster-rcnn | 1,639,456,036 |
se_70853638 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Square zone recognition on the photograph of Rubik's Cube -- Algorithm Suggestion? | Square zone recognition on the photograph of Rubik's Cube -- Algorithm Suggestion?
I have built a robot that solves Rubik's cube. It is working fine but I am hoping someone could suggest a good way to recognize square zones on the photograph of a cube side. Here is a typical photo (left) and the result of the zone... | https://stackoverflow.com/questions/70853638/square-zone-recognition-on-the-photograph-of-rubiks-cube-algorithm-suggestio | computer-vision, artificial-intelligence | 1,643,134,263 |
se_78723306 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenWebUI + Pipelines (w/ langchain hopefully) | OpenWebUI + Pipelines (w/ langchain hopefully)
I'm currently at the last step of https://github.com/open-webui/pipelines, and I tried to start the server, but it says the image below as my error. I'm not sure if the server is already running nor how to run a pipeline (like one of the examples) to test. Any advice woul... | https://stackoverflow.com/questions/78723306/openwebui-pipelines-w-langchain-hopefully | python, localhost, artificial-intelligence, langchain, large-language-model | 1,720,486,997 |
se_77512691 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Retrieval-augmented generation without OpenAIEmbeddings | Retrieval-augmented generation without OpenAIEmbeddings
I'm playing with HuggingFace and some of the models on there. I'm trying to achieve something along the lines of RAG. Seems like a pretty clear guide with all the needed ingredients and recipe. But the cooking sequence is what I need help.
What I want to do:
Hav... | https://stackoverflow.com/questions/77512691/retrieval-augmented-generation-without-openaiembeddings | python, nlp, artificial-intelligence, langchain | 1,700,431,880 |
se_78797528 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Inconsistent Model Predictions When Using Entire Validation Dataset vs. Batch Sampling in TensorFlow | Inconsistent Model Predictions When Using Entire Validation Dataset vs. Batch Sampling in TensorFlow
I am training a deep learning model using TensorFlow and Keras on an image classification task. My model achieves high validation accuracy when evaluated using the validation_ds dataset. However, when I manually sample... | https://stackoverflow.com/questions/78797528/inconsistent-model-predictions-when-using-entire-validation-dataset-vs-batch-sa | python, tensorflow, deep-learning, computer-vision, artificial-intelligence | 1,721,989,786 |
se_78738538 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Llama AI API not returning response | Llama AI API not returning response
I'm just trying to learn Llama AI API and I'm trying to get it to respond to the question "What are common questions to ask on an NDA". but I'm unable to get an response. The content field in the response json is always NULL.
I tried the example given on their website but also was n... | https://stackoverflow.com/questions/78738538/llama-ai-api-not-returning-response | javascript, artificial-intelligence, llama | 1,720,757,040 |
se_78786280 | stackoverflow | ARTIFICIAL_INTELLIGENCE | execute lucene query in multiple language utilizing AI Model | execute lucene query in multiple language utilizing AI Model
We have requirement to support multiple language search for the same field. for example title is "Badminton" and subject is "sports" I want to search in solr like title:Badminton AND subject:sports. this simply works for english but how do i search same docu... | https://stackoverflow.com/questions/78786280/execute-lucene-query-in-multiple-language-utilizing-ai-model | nlp, solr, artificial-intelligence, knn, huggingface | 1,721,791,865 |
se_78779721 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is there a way to train a CNN with the loss of another net? | Is there a way to train a CNN with the loss of another net?
I have 2 CNNs. One is called net and the other is called mask. Both have the same architecture but are initialised differently. My training loop looks like this:
for epoch in range(epochs):
print(f"Epoch {epoch + 1}")
net.train()
mask.train()
... | https://stackoverflow.com/questions/78779721/is-there-a-way-to-train-a-cnn-with-the-loss-of-another-net | pytorch, conv-neural-network, artificial-intelligence, loss-function | 1,721,664,280 |
se_69755379 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is my loss function increasing with each epoch? | Why is my loss function increasing with each epoch?
I'm new to ML, so I'm sorry if this is some stupid question anyone could have figured out. I am using TensorFlow and Keras here.
So here's my code:
import tensorflow as tf
import numpy as np
from tensorflow import keras
model = keras.Sequential([
keras.layers.Den... | https://stackoverflow.com/questions/69755379/why-is-my-loss-function-increasing-with-each-epoch | python, tensorflow, keras, artificial-intelligence, loss-function | 1,635,429,123 |
se_78713020 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Milvus backup tool is failing | Milvus backup tool is failing
I am using the latest version of Milvus Backup. When attempting to back up the entire Milvus cluster, the process only backs up a few collections before getting stuck with the following error. Additionally, the meta directory is not created in the bucket.
Error:
[2024/05/21 00:23:51.409 +... | https://stackoverflow.com/questions/78713020/milvus-backup-tool-is-failing | artificial-intelligence, vector-database, milvus | 1,720,207,291 |
se_78773880 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to Detect the Uploaded Image Face that Matches Faces in Local Images | How to Detect the Uploaded Image Face that Matches Faces in Local Images
I have developed an Angular application that uses face-api.js for face recognition. The application processes a set of local images to identify faces and generates corresponding face descriptors.
When a new image is uploaded, the application dete... | https://stackoverflow.com/questions/78773880/how-to-detect-the-uploaded-image-face-that-matches-faces-in-local-images | javascript, angular, typescript, artificial-intelligence | 1,721,508,121 |
se_78755382 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Trying to run TensorFlow locally (CPU) | Trying to run TensorFlow locally (CPU)
I have got this code I copied from a tutorial
import tensorflow as tf
import tensorflow_datasets as tfds
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
setattr(tfds.image_classification.cats_vs_dogs,
'_URL',"https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-... | https://stackoverflow.com/questions/78755382/trying-to-run-tensorflow-locally-cpu | python, tensorflow, artificial-intelligence | 1,721,142,717 |
se_78765368 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Reserved IP ranges for Vertex AI pipelines in GCP | Reserved IP ranges for Vertex AI pipelines in GCP
Can anyone explain what the "reserved_ip_ranges" parameter is in the GCP Vertex AI Pipeline job? From this doc: https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.PipelineJob#google_cloud_aiplatform_PipelineJob_submit
I have a shar... | https://stackoverflow.com/questions/78765368/reserved-ip-ranges-for-vertex-ai-pipelines-in-gcp | google-cloud-platform, network-programming, ip, artificial-intelligence, google-cloud-vertex-ai | 1,721,316,546 |
se_796154 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Programmatically checking code complexity, possibly via c#? | Programmatically checking code complexity, possibly via c#?
I'm interested in data mining projects, and have always wanted to create a classification algorithm that would determine which specific check-ins need code-reviews, and which may not.
I've developed many heuristics for my algorithm, although I've yet to figu... | https://stackoverflow.com/questions/796154/programmatically-checking-code-complexity-possibly-via-c | c#, asp.net, performance, artificial-intelligence, complexity-theory | 1,240,890,898 |
se_78762914 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Unable to Import `bm3d` Package in Google Colab After Installation | Unable to Import `bm3d` Package in Google Colab After Installation
I am trying to use the bm3d package for image denoising in Google Colab. I was able to use it without any issues a few days ago. However, now I am facing an import error even though the package installs successfully.
Install the bm3d package:
!pip ins... | https://stackoverflow.com/questions/78762914/unable-to-import-bm3d-package-in-google-colab-after-installation | python, machine-learning, deep-learning, artificial-intelligence | 1,721,286,993 |
se_78751195 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is DISKANN index type not supported on DataType.FLOAT_VECTOR with IP metric? | Why is DISKANN index type not supported on DataType.FLOAT_VECTOR with IP metric?
I'm attempting to build an index using the DiskANN type, but I'm encountering an error stating that the index type is not supported. Here is my schema. I'm confused because it’s based on a float vector with the inner product (IP) metric, ... | https://stackoverflow.com/questions/78751195/why-is-diskann-index-type-not-supported-on-datatype-float-vector-with-ip-metric | artificial-intelligence, vector-database, milvus | 1,721,064,499 |
se_78760348 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Error Instantiating EmbeddingModel with ONNX Model intfloat/multilingual-e5-large | Error Instantiating EmbeddingModel with ONNX Model intfloat/multilingual-e5-large
I am encountering an error while trying to instantiate the EmbeddingModel using the ONNX model intfloat/multilingual-e5-large. The error message is as follows:
Failed to instantiate [org.springframework.ai.embedding.EmbeddingModel]: Fac... | https://stackoverflow.com/questions/78760348/error-instantiating-embeddingmodel-with-onnx-model-intfloat-multilingual-e5-larg | java, spring, model, artificial-intelligence, embedding | 1,721,229,950 |
se_78761666 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Operating on photo retrieved from php page using python | Operating on photo retrieved from php page using python
I want to make pseudo-verification api in python that works with images(ID of a worker). It is supposed to be based on certain patterns in image like(circles squares etc. like in snapchat famous system). How do i run python script whenever image is sent from user... | https://stackoverflow.com/questions/78761666/operating-on-photo-retrieved-from-php-page-using-python | python, php, forms, authentication, artificial-intelligence | 1,721,251,417 |
se_76254947 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAi tokens consumed in generating response of a query from custom knowledge base | OpenAi tokens consumed in generating response of a query from custom knowledge base
I am using OpenAI API to build a chatbot based on data feed by me, its consuming more tokens as predicted by words count from query & response,what is the reason?
I provided the chatbot with file containing details about finals of fifa... | https://stackoverflow.com/questions/76254947/openai-tokens-consumed-in-generating-response-of-a-query-from-custom-knowledge-b | artificial-intelligence, openai-api, large-language-model | 1,684,159,685 |
se_76772509 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Llama-2 7B-hf repeats context of question directly from input prompt, cuts off with newlines | Llama-2 7B-hf repeats context of question directly from input prompt, cuts off with newlines
Context: I am trying to query Llama-2 7B, taken from HuggingFace (meta-llama/Llama-2-7b-hf). I give it a question and context (I would guess anywhere from 200-1000 tokens), and ask it to answer the question based on the contex... | https://stackoverflow.com/questions/76772509/llama-2-7b-hf-repeats-context-of-question-directly-from-input-prompt-cuts-off-w | python, artificial-intelligence, huggingface-transformers, large-language-model | 1,690,382,805 |
se_78752778 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I optimize the process to find the best 4-sided shape that contains my mask? | How can I optimize the process to find the best 4-sided shape that contains my mask?
I am currently working on a project where I need to detect pool table and pool balls from a video frame.
I then need to recreate the state of the game in a 2D mini-map, and in order to do so I need the edges of the pool table's playin... | https://stackoverflow.com/questions/78752778/how-can-i-optimize-the-process-to-find-the-best-4-sided-shape-that-contains-my-m | c++, opencv, image-processing, computer-vision, artificial-intelligence | 1,721,106,811 |
se_78752135 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Inconsistent Query Results Based on Output Fields Selection in Milvus Dashboard | Inconsistent Query Results Based on Output Fields Selection in Milvus Dashboard
I'm experiencing an issue with the Milvus dashboard where the search results change based on the selected output fields.
I'm working on a RAG project using text data converted into embeddings, stored in a Milvus collection with around 8000... | https://stackoverflow.com/questions/78752135/inconsistent-query-results-based-on-output-fields-selection-in-milvus-dashboard | artificial-intelligence, vector-database, milvus | 1,721,083,624 |
se_78742630 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Tensorflow issue: logits and labels must have the same first dimension, got logits shape [3,21] and labels shape [15] | Tensorflow issue: logits and labels must have the same first dimension, got logits shape [3,21] and labels shape [15]
I got this error: logits and labels must have the same first dimension, got logits shape [3,21] and labels shape [15] when trying to train my chatbot I created using SimpleRNN layers that tensorflow pr... | https://stackoverflow.com/questions/78742630/tensorflow-issue-logits-and-labels-must-have-the-same-first-dimension-got-logi | python, tensorflow, artificial-intelligence, recurrent-neural-network | 1,720,831,593 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.