Skip to content

Commit

Permalink
fix dreambooth colab
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed May 22, 2024
1 parent 16c20bc commit 30e757b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/autotrain/app/colab.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def start_training(b):
"backend": "local",
"data": {
"path": dataset_path.value,
"prompt": params_val["prompt"],
"prompt": prompt,
},
"params": params_val,
"hub": {
Expand Down
12 changes: 12 additions & 0 deletions src/autotrain/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@


def launch_command(params):
"""
Launches training command based on the given parameters.
Args:
params: An instance of a parameter class (LLMTrainingParams, DreamBoothTrainingParams, GenericParams, TabularParams,
TextClassificationParams, TextRegressionParams, TokenClassificationParams, ImageClassificationParams,
ObjectDetectionParams, Seq2SeqParams).
Returns:
None
"""

params.project_name = shlex.split(params.project_name)[0]
cuda_available = torch.cuda.is_available()
mps_available = torch.backends.mps.is_available()
Expand Down

0 comments on commit 30e757b

Please sign in to comment.