Spaces:
Sleeping
Sleeping
RohitGandikota
commited on
Commit
·
3c5bd3b
1
Parent(s):
4f7b85a
fixing training
Browse files
app.py
CHANGED
@@ -226,13 +226,17 @@ class Demo:
|
|
226 |
outputs=[self.train_button, self.train_status, self.download, self.model_dropdown]
|
227 |
)
|
228 |
|
229 |
-
def train(self, target_concept,positive_prompt, negative_prompt, rank, iterations_input, lr_input,
|
230 |
if target_concept is None:
|
231 |
target_concept = ''
|
232 |
if positive_prompt is None:
|
233 |
positive_prompt = ''
|
234 |
if negative_prompt is None:
|
235 |
negative_prompt = ''
|
|
|
|
|
|
|
|
|
236 |
print(target_concept, positive_prompt, negative_prompt, attributes_input, is_person)
|
237 |
|
238 |
randn = torch.randint(1, 10000000, (1,)).item()
|
|
|
226 |
outputs=[self.train_button, self.train_status, self.download, self.model_dropdown]
|
227 |
)
|
228 |
|
229 |
+
def train(self, target_concept,positive_prompt, negative_prompt, rank, iterations_input, lr_input, attributes_input, is_person, pbar = gr.Progress(track_tqdm=True)):
|
230 |
if target_concept is None:
|
231 |
target_concept = ''
|
232 |
if positive_prompt is None:
|
233 |
positive_prompt = ''
|
234 |
if negative_prompt is None:
|
235 |
negative_prompt = ''
|
236 |
+
if is_person is None:
|
237 |
+
is_person = False
|
238 |
+
else:
|
239 |
+
is_person = True
|
240 |
print(target_concept, positive_prompt, negative_prompt, attributes_input, is_person)
|
241 |
|
242 |
randn = torch.randint(1, 10000000, (1,)).item()
|