"comfy/git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "cf5a211efc2c1f1fb53abbfcddcc6499fdd773de"
Commit e5812462 authored by thomwolf's avatar thomwolf
Browse files

clean up debug and less verbose tqdm

parent 4775ec35
...@@ -287,7 +287,8 @@ def http_get(url, temp_file, proxies=None, resume_size=0, user_agent=None): ...@@ -287,7 +287,8 @@ def http_get(url, temp_file, proxies=None, resume_size=0, user_agent=None):
return return
content_length = response.headers.get('Content-Length') content_length = response.headers.get('Content-Length')
total = resume_size + int(content_length) if content_length is not None else None total = resume_size + int(content_length) if content_length is not None else None
progress = tqdm(unit="B", unit_scale=True, total=total, initial=resume_size, desc="Downloading") progress = tqdm(unit="B", unit_scale=True, total=total, initial=resume_size,
desc="Downloading", disable=bool(logger.level<=logging.INFO))
for chunk in response.iter_content(chunk_size=1024): for chunk in response.iter_content(chunk_size=1024):
if chunk: # filter out keep-alive new chunks if chunk: # filter out keep-alive new chunks
progress.update(len(chunk)) progress.update(len(chunk))
......
...@@ -171,7 +171,6 @@ class CsvPipelineDataFormat(PipelineDataFormat): ...@@ -171,7 +171,6 @@ class CsvPipelineDataFormat(PipelineDataFormat):
with open(self.input_path, 'r') as f: with open(self.input_path, 'r') as f:
reader = csv.DictReader(f) reader = csv.DictReader(f)
for row in reader: for row in reader:
print(row, self.column)
if self.is_multi_columns: if self.is_multi_columns:
yield {k: row[c] for k, c in self.column} yield {k: row[c] for k, c in self.column}
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment