302 questions
0 votes
0 answers
112 views
How to use Replicate Trained Model after Training is finished?
I am developing an AI Headshot SaaS and I am having a bit of trouble getting the Replicate models to work correctly and it's kind of confusing me. Everything works up to Replicate Training Model but I ...
0 votes
0 answers
184 views
Image generation with Replicate API keeps failing and also get predictor error
I am trying to allow a user to upload around 5 photos so that I can pass it through 2 Replicate API Models based on a prompt. I want it so that it trains then generate image based on prompt then a ...
0 votes
0 answers
47 views
Do Model.find() on replicate MongoDB
Hi everyone i have a problem and i need to solve for my project of university. One of my teachers said i needed a replicate database but when i make a simple request Model.find() return a error ...
0 votes
0 answers
26 views
Create multiples dates list for each level of a factor [duplicate]
I would like to create a data frame that would include a date list replicated by the levels of a factor. I can create the list pretty easily lst_dates<-as.data.frame(seq(as.Date("2024-05-07&...
0 votes
1 answer
332 views
Using fine tuned flux-dev model from Replicate platform locally?
I've fine tuned flux-dev model using Replicate platform. I've downloaded the weights after the training process but I do not want to generate images on web interface. Instead I want to use my local ...
1 vote
1 answer
113 views
What is the fastest alternative to replicate() in R when running codes with multiple functions?
I have this code where I use six functions for Monte Carlo simulation and then calculate the 95th percentile of the resulting probability distribution for each row of the data frame I specified using ...
5 votes
3 answers
131 views
Is there a faster way to write code to draw many random samples from 1:N?
I'm drawing many sorted samples of size k (typically ~5) from 1:35. The code I am using is: replicate(1000000, sort(sample(1:35, size = 5)) ) But this is rather slow. I assume that since I am using ...
1 vote
1 answer
79 views
Nginx location specific timeout
I am trying to rewrite proxy_read_timeout for a specific route that sends requests to Replicate that has longer response times. If the AI model is cold, it takes more than 1 minute to respond and ...
0 votes
1 answer
206 views
Replicated & Distributed Clickhouse - Keeper Replication
I need to create the replication in clickhouse; on two different machines that are under the same network. I have tried to configure it but I have the following error: SQL Error [999] [07000]: Code: ...
3 votes
1 answer
133 views
Why do I get different outputs for calling "replicate" with and without pipe "%>%" in R?
I want to generate a character vector with 20 elements, each has a random string. So I generate a random string with the following code: sample(x = c(letters, LETTERS), size = sample.int(100, 1), ...
0 votes
2 answers
44 views
Replicate a procedure: generate m dataframes, each one with a variable that includes random values, and append them, in R
Which is the most efficient way to generate m dataframes, where each one has a variable that includes random values, and append them? Here's an example: df <- data.frame(id = 1:10, var = sample(1:...
0 votes
0 answers
104 views
Why is this React Server Component never loading when awaiting data?
I'm moving from Nuxt to NextJS and I've been playing with it for 1 month now, so I am pretty new to the framework. I am trying to use StabilityAI-SDXL with NextJS, and it should be very ...
0 votes
0 answers
64 views
Saving an image from a URL to firebase storage not working
I have a problem with saving the response to firebase cloud storage and then saving that url to the db, but it doesn't work I am logging a lot of stuff, but none actually log and I have no errors just ...
0 votes
1 answer
133 views
How to create a loop that subsamples dataset, runs a specific equation, and gives you a list of p-values for each sub-samples?
There is a previous question which asks a similar question (Is there a way to create a loop where I provide a function and dataframe and subsample it, and repeat the function with a subsample N times?)...
0 votes
1 answer
587 views
How to store Data in Database from Webhook
I'm new to Next.js and Supabase. I'm using a webhook from Replicate to receive data from an image generation process. My goal is to store this data in my Supabase database. Here's the function I've ...