mirror of
https://github.com/NanjingForestryUniversity/supermachine-wood.git
synced 2025-11-08 10:13:53 +00:00
fix: 修改了SZQ大小写
This commit is contained in:
parent
8a7dfa87ae
commit
24ca1099e6
@ -165,6 +165,7 @@ def main():
|
||||
socket_send_1.send(send_message)
|
||||
print('发送成功')
|
||||
result = socket_send_2.recv(5)
|
||||
print(result)
|
||||
new_leng = int.from_bytes(result[1:], byteorder='big')
|
||||
result = socket_send_2.recv(new_leng)
|
||||
print(result)
|
||||
|
||||
@ -507,7 +507,7 @@ class WoodClass(object):
|
||||
y_data = y_data[sorted_idx]
|
||||
labels = labels[sorted_idx]
|
||||
img_names = [img_names[i] for i in sorted_idx]
|
||||
mapping = {0: 's', 1: 'z', 2: 'q'}
|
||||
mapping = {0: 'S', 1: 'Z', 2: 'Q'}
|
||||
y_data = [mapping[i] for i in y_data]
|
||||
labels = [mapping[i] for i in labels]
|
||||
data = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user