Open SharhadBashar opened 3 years ago
y_20 is the output (x_20 is before sigmoid) of 20-category classification, and y_200 is the output of the fine-grained classification, where each parent class contains 10 sub-categories. And yes, the first 10 are for the 1st parent class, and so on.
This line should give you 100 outputs if you set the cluster number as 5, where the model is initiated at this line in train_cls.py
.
I want to modify the images used for training: i want to add my own images. how do i go around doing that? here is what i did:
Heres the error:
18605 18605
18605 18605 (16458, 20)
Traceback (most recent call last):
File "create_pseudo_label.py", line 202, in <module>
train_filename_list, train_label_200, train_label_20 = create_train_data(merge_filename_list, new_label_list, keep_idx_list)
File "create_pseudo_label.py", line 126, in create_train_data
train_label_20.append(label_20[idx])
IndexError: index 16460 is out of bounds for axis 0 with size 16458
k_cluster: 10
The model outputs x_20 and y_20 What are these exactly? same for x_200 and y_200
Also x_200 / y_200 has a size of 200 per image. can i assume, the first 10 values are for the first class, the next 10 values for the second class and so on?
Also i set the value for k_cluster in script.sh to 5, but only label_200 came out as size 100 for each image. x_200 and y_200 were still size 200 for each image. Why?