Downloads · 30 days
0
Elfenreigen/CHE-Master
CHE-Master is a machine learning model from Elfenreigen. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
The config file is ./configs/example.yaml. You can modify testfile or finetune, which correspond to the CSV file location and the pre-trained model checkpoint location, respectively.
Downloads · 30 days
0
Access
Public
Updated Feb 14, 2025
Repo size
3.3 GB
Likes
1
Public
Click a slice to open those files.
.pt2.4 GB · 73%
From the Hugging Face model README
The config file is ./configs/example.yaml. You can modify test_file or finetune, which correspond to the CSV file location and the pre-trained model checkpoint location, respectively.
The model weight files are located in the ./configs folder. Ensure that these files are correctly loaded when running the model.
The CSV file contains the paths to the test images and their corresponding labels. This file is used for testing the model.
test_example.pyChestxray14_Dataset ClassIn the Chestxray14_Dataset class within test_example.py, you need to adjust the column indices according to the structure of your CSV file. Specifically, ensure that the columns for image paths and labels are correctly referenced.
valid_on MethodThe valid_on method in test_example.py contains a text_list that should correspond to the labels in your CSV file. Make sure that the text_list is updated to match the labels in your dataset.
The model will generate prediction results for each image and each class. These results will be saved as .npy files.
The .npy files will be stored in subfolders within the ./results directory. Each subfolder corresponds to a specific run or configuration of the model.