You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I use list(pair_path) after for statement, the result becomes empty.
Now, it assign result = list(pair_path)
before for blur, real in iter_pair_path:
.
why?
The text was updated successfully, but these errors were encountered:
for blur, real in iter_pair_path:
name1=blur.split('/')[-1]
name2=real.split('/')[-1]
if name1 != name2:
pair_path.remove((blur, real))
print("blur: %s, real: %s pair was removed in training data"%(name1, name2))
#logging
return list(pair_path)
result = list(pair_path)
for blur, real in iter_pair_path:
name1=blur.split('/')[-1]
name2=real.split('/')[-1]
if name1 != name2:
result.remove((blur, real))
print("blur: %s, real: %s pair was removed in training data"%(name1, name2))
#logging
print(result)
return result
when I use list(pair_path) after for statement, the result becomes empty.
Now, it assign
result = list(pair_path)
before
for blur, real in iter_pair_path:
.
why?
The text was updated successfully, but these errors were encountered: