Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Apr 25, 2024
1 parent 595d238 commit 56b4ce2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/autotrain/app_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ def run_training(params, task_id, local=False, wait=False):
else:
raise NotImplementedError

if not local:
params.project_name = "/tmp/model"
params.save(output_dir=params.project_name)
cmd = launch_command(params=params)
cmd = [str(c) for c in cmd]
Expand Down
15 changes: 7 additions & 8 deletions src/autotrain/trainers/dreambooth/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ def train(config):
if config.model in utils.XL_MODELS:
config.xl = True

if config.project_name == "/tmp/model":
snapshot_download(
repo_id=config.image_path,
local_dir=config.project_name,
token=config.token,
repo_type="dataset",
)
config.image_path = "/tmp/model/concept1/"
snapshot_download(
repo_id=config.image_path,
local_dir="/tmp/model",
token=config.token,
repo_type="dataset",
)
config.image_path = "/tmp/model/concept1/"
if config.image_path == f"{config.project_name}/autotrain-data":
config.image_path = os.path.join(config.image_path, "concept1")

Expand Down

0 comments on commit 56b4ce2

Please sign in to comment.