Skip to content

Commit 0918d4e

Browse files
committedApr 9, 2021
Removed bug. Added thresholds.
1 parent cca0e94 commit 0918d4e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Download the [Emotic dataset](https://drive.google.com/open?id=0B7sjGeF4f3FYQUVl
7070

7171
You can also train and test models on Emotic dataset by using the [Colab_train_emotic notebook](https://github.com/Tandon-A/emotic/blob/master/Colab_train_emotic.ipynb). [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Tandon-A/emotic/blob/master/Colab_train_emotic.ipynb)
7272

73-
The **trained models** to use for inference purposes are availble [here](https://drive.google.com/drive/folders/1e-JLA7V73CQD5pjTFCSWnKCmB0gCpV1D?usp=sharing).
73+
The **trained models and thresholds** to use for inference purposes are availble [here](https://drive.google.com/drive/folders/1e-JLA7V73CQD5pjTFCSWnKCmB0gCpV1D?usp=sharing).
7474

7575
## Results
7676

‎inference.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import torch
66
from torchvision import transforms
77

8+
from emotic import Emotic
9+
810

911
def process_images(context_norm, body_norm, image_context_path=None, image_context=None, image_body=None, bbox=None):
1012
''' Prepare context and body image.

‎test.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import torchvision.models as models
1010
from torchvision import transforms
1111

12+
from emotic import Emotic
1213
from emotic_dataset import Emotic_PreDataset
1314

1415

0 commit comments

Comments
 (0)
Please sign in to comment.