replicate-python icon indicating copy to clipboard operation
replicate-python copied to clipboard

Python client for Replicate

Results 81 replicate-python issues
Sort by recently updated
recently updated
newest added

As the README states, [AsyncIO support](https://github.com/replicate/replicate-python?tab=readme-ov-file#asyncio-support) works fine by prepending `async_` to the method name. I already do this across many functions, and it works perfectly. However, I discovered a...

Hi! I am suddenly seeing a lot of readtimeouts - thought initially that it might have been a temporary issue on replicate side, but they seem to persist. Maybe similar...

When I run the code examples in the README, I get back `replicate.helpers.FileOutput` objects. I expected to get URLs. Steps to reproduce: pip install replicate== 1.0.2 export REPLICATE_API_TOKEN=... python3 ```...

Double check the type hints please, but this should be a good start for type hinting run

Getting the following error when trying to run the model: Using seed: 45274 Prompt: a photo of a male holding a gun, island in background, 90s action movie style, cinematic,...

Using flux schnell and flux dev output the image in base64 while black-forest-labs/flux-1.1-pro outputs directly the link to the image on replicate server. Is it normal ? Here is the...

Training Code: ``` training = replicate.trainings.create( destination=f"{REPLICATE_USERNAME}/{model_name}", version=BASE_MODEL, input={ "steps": 1000, "lora_rank": 16, "optimizer": "adamw8bit", "batch_size": 1, "resolution": "512,768,1024", "autocaption": True, "input_images": "https://api.replicate.com/v1/files/MWEzOTFjZDktODRiOC00NGU3LTk2NDgtNmU3OTFiYzI4ODAx/download?expiry=1728649027&owner=eloelo-techadmin&signature=Jax4T4zzjb%252BKcQqog45X1DkXRU%252BP2EQJhDx9UDU1REI%253D", "trigger_word": model_name, "learning_rate": 0.0004, # "wandb_project": "flux_train_replicate",...

I'm fine-tuning [sakemin](https://replicate.com/sakemin) /[musicgen-fine-tuner](https://replicate.com/sakemin/musicgen-fine-tuner):bc57274e. Same error as #308 which was closed without resolution. Error message after otherwise successful execution: "Training failed. Failed to create trained image after successful training run"...

I am opening the file handler and passing it to the replicate.trainings.create, my file file_input = open(f"{file_name}","rb") training = replicate.trainings.create( model="stability-ai/sdxl", version="7762fd07cf82c948538e41f63f77d685e02b063e37e496e96eefd46c929f9bdc", input={ "input_images": file_input, "token_string": "TOK", "caption_prefix": "a photo...