zi2zi-pytorch icon indicating copy to clipboard operation
zi2zi-pytorch copied to clipboard

AttributeError: 'NoneType' object has no attribute 'tobytes'

Open doublex640 opened this issue 1 year ago • 2 comments

按照视频教程一步一步来,软件版本都降级了,但还是出现错误,请大佬解惑! Traceback (most recent call last): File "font2img.py", line 340, in args.sample_count, args.sample_dir, args.label, args.filter) File "font2img.py", line 143, in font2font filter_hashes = set(filter_recurring_hash(charset, dst_font, canvas_size, x_offset, y_offset)) File "font2img.py", line 131, in filter_recurring_hash hash_count[hash(img.tobytes())] += 1 AttributeError: 'NoneType' object has no attribute 'tobytes'

doublex640 avatar Dec 24 '23 14:12 doublex640

解决了。已有字列表得是缺字的那个字体里导出的,而不是大而全的那个字体里的。我搞反了。

doublex640 avatar Dec 27 '23 00:12 doublex640

您好,我现在遇到了这个问题,请问具体,感激不尽

fanabcd avatar Feb 22 '24 06:02 fanabcd