"git@developer.sourcefind.cn:modelzoo/solov2-pytorch.git" did not exist on "86dd997900e208edffa89417977e51d0c2706f2d"
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):
return
content_length = response.headers.get('Content-Length')
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):
if chunk: # filter out keep-alive new chunks
progress.update(len(chunk))
......
......@@ -171,7 +171,6 @@ class CsvPipelineDataFormat(PipelineDataFormat):
with open(self.input_path, 'r') as f:
reader = csv.DictReader(f)
for row in reader:
print(row, self.column)
if self.is_multi_columns:
yield {k: row[c] for k, c in self.column}
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