3
.gitignore
vendored
3
.gitignore
vendored
@@ -230,4 +230,5 @@ $RECYCLE.BIN/
|
|||||||
# End of https://www.toptal.com/developers/gitignore/api/linux,windows,macos,visualstudiocode,python
|
# End of https://www.toptal.com/developers/gitignore/api/linux,windows,macos,visualstudiocode,python
|
||||||
|
|
||||||
output/
|
output/
|
||||||
*.png
|
*.png
|
||||||
|
checkpoint/
|
||||||
@@ -37,6 +37,7 @@ class FluxKleinAPI(ls.LitAPI):
|
|||||||
|
|
||||||
self.pipe = Flux2KleinPipeline.from_pretrained(
|
self.pipe = Flux2KleinPipeline.from_pretrained(
|
||||||
self.repo_id,
|
self.repo_id,
|
||||||
|
cache_dir="./checkpoint/",
|
||||||
torch_dtype=self.dtype
|
torch_dtype=self.dtype
|
||||||
)
|
)
|
||||||
self.pipe.to(device)
|
self.pipe.to(device)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ services:
|
|||||||
working_dir: /app
|
working_dir: /app
|
||||||
volumes:
|
volumes:
|
||||||
- ./app:/app/app
|
- ./app:/app/app
|
||||||
|
- ./checkpoint:/app/checkpoint
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
- "14202:8451"
|
- "14202:8451"
|
||||||
|
|||||||
Reference in New Issue
Block a user