File size: 800 Bytes
d915a29
 
 
a2bb9cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---

license: mit
---


# Practical Alien Detector

Finetuned resnet50 for detecting if the image you show it is an alien or not. 

You can try it out as an API by following the `How to run an API and test your model` instructions.

This model was created for fun!

## Installation

```shell

pip3 install fastbook



pip3 install fastai



pip3 install flask

```

## How to build your model

```shell

python3 aliens_model_builder.py

```

## How to test your model

![Python Terminal](./img/python-terminal.png)

After running it wil ask the image path.

```shell

python3 aliens_model_test.py

```

## How to run an API and test your model

![Python API](./img/python-api.png)

After running it, visit `http://localhost:5000/`

```shell

python3 aliens_api.py

```