Image Classification
annanau commited on
Commit
f90de14
·
verified ·
1 Parent(s): 16e9828

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -1
README.md CHANGED
@@ -22,7 +22,33 @@ These CNN models were developed for the classification of human decomposition im
22
  - [Stage of Decay Estimation Exploiting Exogenous and Endogenous Image Attributes to Minimize Manual Labeling Efforts and Maximize Classification Performance](https://ieeexplore.ieee.org/abstract/document/10222106)
23
  - [Towards Automation of Human Stage of Decay Identification: An Artificial Intelligence Approach](https://arxiv.org/abs/2408.10414)
24
 
 
 
 
 
 
 
 
25
  ## Usage
26
- The stage of decay classification is bodypart specific, that is, for the head, torso, or limbs.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
 
 
28
 
 
 
 
 
22
  - [Stage of Decay Estimation Exploiting Exogenous and Endogenous Image Attributes to Minimize Manual Labeling Efforts and Maximize Classification Performance](https://ieeexplore.ieee.org/abstract/document/10222106)
23
  - [Towards Automation of Human Stage of Decay Identification: An Artificial Intelligence Approach](https://arxiv.org/abs/2408.10414)
24
 
25
+
26
+ ## Dataset
27
+
28
+ - Dataset Name: Human Decomposition Dataset
29
+ - Source: The dataset used in this study was obtained from the Forensic Anthropology Center (FAC) at the University of Tennessee, Knoxville, but due to privacy considerations, it is not available for public access. Please reach out to obtain access.
30
+ - Classes: 1-6 (least to most decay) based on [Gelderman et al's](https://link.springer.com/article/10.1007/s00414-017-1700-9) scoring method.
31
+
32
  ## Usage
33
+ The stage of decay classification is bodypart specific (i.e., head, torso, or limbs), so make sure to pick the correct bodypart model.
34
+
35
+ ```python
36
+ from tensorflow.keras.models import load_model
37
+ import numpy as np
38
+ from tensorflow.keras.preprocessing.image import img_to_array, load_img
39
+
40
+ # Load the entire model
41
+ model = load_model('path_to_your_model') # e.g. head/inceptionV3 to perform stage of decay classfication of head images
42
+
43
+ # Load and preprocess an image
44
+ img = load_img('path_to_image.jpg', target_size=(299, 299)) # adjust size as per model input
45
+ img = img_to_array(img) # convert to numpy array
46
+ img = np.expand_dims(img, axis=0) # add batch dimension
47
+ img = img / 255.0 # normalize pixel values if needed
48
 
49
+ # Make predictions
50
+ predictions = model.predict(img)
51
 
52
+ # Use argmax to get the class label
53
+ predicted_class = np.argmax(predictions, axis=1)
54
+ ```