File size: 952 Bytes
c994b15
 
 
 
b428185
 
c994b15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: apache-2.0
---

# VRAM needed for FP16: 15.9 GB

[Run inference with this](https://github.com/SicariusSicariiStuff/X-Ray_Vision)

# This is a pre-alpha POC (Proof Of Concept)

## Instructions:
clone:
```
git clone https://github.com/SicariusSicariiStuff/X-Ray_Vision.git
```

Settings up venv, (tested for python 3.11, probably works with 3.10)
```
python3.11 -m venv env
source env/bin/activate
```

Install dependencies
```
pip install git+https://github.com/huggingface/[email protected]
pip install torch
pip install pillow
pip install accelerate
```

# Running inference

Usage:
```
python xRay-Vision.py /path/to/model/ /dir/with/images/
```
The output will print to console, and export the results into a dir named after your image dir with suffix "_TXT"

So if you run:
```
python xRay-Vision.py /some_path/x-Ray_model/ /home/images/weird_cats/
```
Then results will be exported to:
```
/home/images/weird_cats_TXT/
```