Skip to content

Commit

Permalink
Update src/fondant/components/segment_images/src/main.py
Browse files Browse the repository at this point in the history
Co-authored-by: Robbe Sneyders <[email protected]>
  • Loading branch information
mrchtr and RobbeSneyders authored Mar 13, 2024
1 parent fb55154 commit c3a1e78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fondant/components/segment_images/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ def __init__(

def setup(self) -> Client:
"""Setup LocalCudaCluster if gpu is available."""
dask.config.set({"dataframe.convert-string": False})
dask.config.set({"distributed.worker.daemon": False})

if self.device == "cuda":
cluster = LocalCUDACluster()
return Client(cluster)
Expand Down

0 comments on commit c3a1e78

Please sign in to comment.