Spaces:
Running
Running
Commit
·
a534aaf
1
Parent(s):
acea27c
Update trainer.py
Browse files- trainer.py +2 -2
trainer.py
CHANGED
@@ -97,7 +97,7 @@ class Trainer:
|
|
97 |
output_dir.mkdir(parents=True)
|
98 |
|
99 |
if upload_to_hub:
|
100 |
-
self.join_model_library_org()
|
101 |
|
102 |
config = OmegaConf.load('Tune-A-Video/configs/man-surfing.yaml')
|
103 |
config.pretrained_model_path = self.download_base_model(base_model)
|
@@ -154,7 +154,7 @@ class Trainer:
|
|
154 |
if remove_gpu_after_training:
|
155 |
space_id = os.getenv('SPACE_ID')
|
156 |
if space_id:
|
157 |
-
api = HfApi(token=hf_token if self.hf_token else input_token)
|
158 |
api.request_space_hardware(repo_id=space_id,
|
159 |
hardware='cpu-basic')
|
160 |
|
|
|
97 |
output_dir.mkdir(parents=True)
|
98 |
|
99 |
if upload_to_hub:
|
100 |
+
self.join_model_library_org(self.hf_token if self.hf_token else input_token)
|
101 |
|
102 |
config = OmegaConf.load('Tune-A-Video/configs/man-surfing.yaml')
|
103 |
config.pretrained_model_path = self.download_base_model(base_model)
|
|
|
154 |
if remove_gpu_after_training:
|
155 |
space_id = os.getenv('SPACE_ID')
|
156 |
if space_id:
|
157 |
+
api = HfApi(token=self.hf_token if self.hf_token else input_token)
|
158 |
api.request_space_hardware(repo_id=space_id,
|
159 |
hardware='cpu-basic')
|
160 |
|