302 questions
0
votes
0
answers
113
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
186
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
27
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
333
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
80
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
211
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
105
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
65
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
588
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 ...
1
vote
1
answer
499
views
Logminer memory usage
we replicate data from several databases using LogMiner.
In all of DBs it works as it should except one.
When I execute following commands:
EXECUTE DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/oracle/...
2
votes
1
answer
146
views
how to visualize the effect of a variable in a multiple point process model fitted using gam using spatstat?
I am fitting multiple point process model fitted using gam in spatstat (version 3.0-7).
To be clear I am using a call of the general form:
mppm(formula, data=hyperframe, eps=0.5, rbord=0.5, use.gam=...
0
votes
1
answer
185
views
replicate with llama-index and streamlit - unable to find documents
I am running code below on a GPU via:
streamlit run replicate_lama2.py
import os
import traceback
import sys
import streamlit as st
os.environ["REPLICATE_API_TOKEN"] = "my_key"
...
0
votes
0
answers
183
views
how to upload photo to replicate API using Django?
I need to use i2vgen-xl model in Replicate website using Replicate API in Django and I need to pass an image (not URL) but it gives me this error:
- input: prompt is required
- input.image: Does not ...
2
votes
2
answers
63
views
Double values of a specific row in a matrix into the next row
I have this matrix a = [nrow = 365, ncol = 288] and I want to double the values of the 59th row. Then it means, the new matrix will be b = [nrow = 366, ncol = 288] and the values of the 59th & ...
1
vote
1
answer
118
views
How do I write code to handle dealing with averaging replicates with NA values in R?
I am currently working on a scientific project where each sample has two or three replicates.
The data (we'll call the dataframe 'raw') looks something along the lines of:
| SampleID | Var1 | Var2 ...
0
votes
0
answers
52
views
Laravel replicate works but not inserting into database
I am trying to replicates a record in my database here is my controller
private Receiver $receiver;
public function __construct()
{
$this->receiver = new Receiver();
...
}
$this->...
7
votes
1
answer
12k
views
I getSyntaxError: No number after minus sign in JSON at position 1
I am tying to work with the replicate model visoar/product-photo:edf42659dae0da88a26dba4912e7e4bb6c2fba25b1e1c6a5464cf220e467bce0, but when i provide him with an image and a prompt like that in page....
0
votes
1
answer
291
views
Problem of performance in replicated infinispan
I am using Infinispan replicated cache, and when I scale two instances of the application on separate machines, the performance significantly decreases. It is worth mentioning that the protocol used ...
1
vote
0
answers
125
views
cog / replicate build artifacts missing
Im using cog / replicate to deploy a model.
In my cog.yaml I do the following:
run:
- "git clone https://github.com/152334H/tortoise-tts-fast"
- "cd tortoise-tts-fast"
...
0
votes
3
answers
24k
views
How to upload a file(image) with Nextjs
I am trying to:
Upload a picture to a Next.js app
Run it through cjwbw/real-esrgan:d0ee3d708c9b911f122a4ad90046c5d26a0293b99476d697f6bb7f2e251ce2d4
Then return the enhanced image
Does anybody know ...
0
votes
1
answer
29
views
Having trouble centering text that has an ID of "locations" It is located in the "locationbox" class
I am having trouble centering the <p id="locations">Locations</p> .
I am attempting to replicate this webpage. enter image description here
Here is the HTML code that I have:
&...
1
vote
0
answers
376
views
Using Replicate AI, how can I pull files from cloud storage during build?
I am building a docker image using cog from Replicate AI. The docker image will contain a pytorch model checkpoint for image classification. I would like to pull the checkpoint file from Google Cloud ...
1
vote
0
answers
14
views
Receiving CORS error on API, tried editing headers, not working [duplicate]
This is my API request code for Replicate AI API and it is showing CORS error, and I tried adding the line below to headers but it still didn't work...
'Access-Control-Allow-Origin':'*',
'Access-...
2
votes
1
answer
1k
views
Asynchronous Replicate API in Python
I am writing a telegram bot that will generate images using this stable diffusion model: https://replicate.com/mbentley124/openjourney-img2img
I am using the replicate module. however, the code ...
0
votes
1
answer
33
views
How can I achieve replicability with the latest version of TensorFlow while doing grid search for tuning?
With latest version of tensorflow, I do not get replicable results.
This was not a problem with older version I was running. However, when I upgraded to latest version, I lost replicability.
Given ...
1
vote
1
answer
4k
views
How can I upload files to the replicate API with Node JS
I'm trying to use the sadTalker AI model through replicate.
The point of sadtalker is that you upload an image of a person and an audio file of someone talking, and it gives you back a deepfake video ...
0
votes
1
answer
3k
views
Trying to call Replicate API
When I try to execute this POST request I get a cors-policy error. If I set mode to no-cors I get a caught (in promise) TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation error. What ...
2
votes
1
answer
106
views
What are the difference between 'rexp(1000, 1)' and 'replicate(1000, rexp(1,1))' in R?
I am trying to generate 1000 numbers using exponential distribution with parameter 1.
After setting the seed value to 1, I tried both rexp(1000, 1) and replicate(1000, rexp(1, 1)), but the medians of ...
0
votes
1
answer
94
views
Insufficient privilege to copy or manage ACLs for some databases in Domino Server as a Full Access Administrator
I am a Full Access administrator as well as all other kinds of administrators (Administrators, Database Administrators etc.) except the restrictive groups such as Restricted System Administrator.
With ...
2
votes
2
answers
296
views
R: Repeat rows of a data.frame k times and add prefix to new row values
I know from this answer how to duplicate rows of a dataframe. That's fine if you want to repeat the rows n times.
I want to do something similar but to also add a prefix within a column of newly ...
3
votes
0
answers
2k
views
How to make Optuna get replicable results?
I'm using optuna to tune LGBM. Random seeds had been set but each time Optuna got different set of best params.
Here's my optuna code:
def get_hpo_params(opt_X_train, opt_X_val, opt_y_train, opt_y_val,...
0
votes
0
answers
256
views
Discord bot crashes after starting
i tried to use this code and everythink looks quite cool but everytime im gettin an big error after second from starting
from discord import Intents
from discord.ext import commands
from dotenv import ...
-4
votes
1
answer
173
views
Is it possible to duplicate / clone of a machine learning algorythm with output results?
Is there any way to train a machine learning algorithm to learn from results of another and then clone it?
Tried clone with scikit learn but keeps getting different results with the same input data
10
votes
5
answers
18k
views
how to add Replicate api key?
i´m trying to use Replicate to run some neural networks in the cloud but it yields this error message:
ReplicateError: No API token provided. You need to set the REPLICATE_API_TOKEN environment ...
0
votes
1
answer
223
views
Line plot using ggplot on replicated data
I am trying to do a line plot using ggplot on my replicated data. There are five data sets and each data has five replicates as a1, a2, a3, a4, a5. Similarly for data b I have b1, b2, b3, b4 and b5. ...
1
vote
1
answer
818
views
How to replicate a process 1000 times and save the results as you go?
I need to repeat a process 1000 times and save the results as I go along, but I’m not sure how to do it.
Here’s what I have:
x1 = runif(4000, min = 0, max = 1)
x2 = runif(4000, min = 0, max = 1)
y <...
1
vote
2
answers
79
views
mean for replicate lists in R?
I have simulation and data structures as follows (just a toy example):
foo = function(mu=0,lambda=1){
x1 = rnorm(1,mu) #X~N(μ,1)
y1 = rexp(1,lambda) #Y~Exp(λ)
list(x=x1,y=y1)
}
mu = 1; lambda = ...
3
votes
2
answers
225
views
Sample, replicate and histogram in R
I want to choose 100 houses randomly from my dataset, and find the mean value of their total price. Then repeat this action 100 times, and for each time I repeat the action, calculate the mean price. ...
3
votes
0
answers
232
views
Cog vs Triton Inference Server
I'm considering Cog and Triton Inference Server for inference in production.
Does someone know what is the difference in capabilities as well as in run times between the two, especially on AWS?
0
votes
0
answers
2k
views
How to replicate UObject inside UStruct?
USTRUCT()
struct FTestStruct
{
GENERATED_USTRUCT_BODY()
private:
UPROPERTY(EditAnywhere)
float Something;
UPROPERTY()
UMyObject* Object;
...
1
vote
2
answers
48
views
How to repeat query on different parts of a dataset in R?
I want to repeat a particular query on a large dataset and I am sure the answer to my question is quite basic, but after reading various sources on 'for' loops, repeat and replicate functions for ...
2
votes
2
answers
518
views
Duplicate datetime values in a dataframe column using a list of numbers [duplicate]
I have a dataframe with a datetime column in string type, like this:
>>> df2
date a b
0 2020/1/1 8.0 5.0
1 2020/1/2 10.0 7.0
2 2020/1/3 6.0 1.0
3 2020/1/4 6.0 3.0
...
0
votes
1
answer
53
views
R: repeate replicate if output is NA
I am solving numerically stochastic differential equation with use of diffeqr in R, check if the last value is large enough and replicate the process for 5 times. The piece of code for this part is:
...
1
vote
3
answers
64
views
Generating a vector with n repetitions of x, then y, then z, with a fixed upper bound
I am trying to create a vector where I have 3 repetitions of the number 1, then 3 repetitions of the number 2, and so on up to, for instance, 3 repetitions of the number 36.
c(1,1,1,2,2,2,3,3,3,4,4,4,...