Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to deploy the model by pushing it to replicate #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sdxl-cache/
refiner-cache/
safety-cache/
trained-model/
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ cog train -i input_images=@example_datasets/__data.zip -i use_face_detection_ins
cog run -p 5000 python -m cog.server.http
```

## Push to Replicate

to push the trainable model to replicate, execute the following commands:

```bash
chmod +x script/download_weights
```

```bash
cog run script/download_weights
```

```bash
cog push r8.im/"your model name in replicate here"
```

## Update notes

**2023-08-17**
Expand Down
1 change: 1 addition & 0 deletions script/download_weights.py → script/download_weights
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
# Run this before you deploy it on replicate, because if you don't
# whenever you run the model, it will download the weights from the
# internet, which will take a long time.
Expand Down