mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-17 00:23:35 +00:00
fixes
This commit is contained in:
@@ -954,7 +954,7 @@ class Trainer:
|
|||||||
|
|
||||||
if self.args.push_to_hub:
|
if self.args.push_to_hub:
|
||||||
repo_id = self.args.hub_model_id or Path(self.args.output_dir).name
|
repo_id = self.args.hub_model_id or Path(self.args.output_dir).name
|
||||||
self.state.repo_id = create_repo(token=self.args.hub_token, name=repo_id).repo_id
|
self.state.repo_id = create_repo(token=self.args.hub_token, repo_id=repo_id).repo_id
|
||||||
|
|
||||||
def _move_components_to_device(self):
|
def _move_components_to_device(self):
|
||||||
if self.text_encoder is not None:
|
if self.text_encoder is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user