semvec/pypi-packages huggingface dataset:
faultsim 0.0.1
Basic combinational logic circuit fault simulation
Requires Python: >=3.6

# faultsim
Basic combinational logic circuit fault simulation

Python 3.6+ required

# Example

download the module and import

```python
import faultsim as sim
```

build the stuck-at faults example circuit in [section 1.3.2.1 of the textbook [1]](https://books.google.com.tw/books?id=P1ea4znZhGsC&lpg=PP1&hl=zh-TW&pg=PA12#v=onepage&q&f=false)

```python
X1 = sim.Node("X1")
X2 = sim.Node("X2")
X3 = sim.Node("X3")

NOT1 = sim.NOT("NOT1")
AND1 = sim.AND("AND1")
AND2 = sim.AND("AND2")
OR1 = sim.OR("OR1")

X1.connect(AND1.A)
X2.connect(AND1.B, NOT1.A)
X3.connect(AND2.B)
NOT1.Q.connect(AND2.A)
AND1.Q.connect(OR1.A)
AND2.Q.connect(OR1.B)

PI = sim.NodeList(X1, X2, X3)
PO = sim.NodeList(OR1.Q)
```

run simulation without fault

```python
PI.setbitstr('000')
PI.propagate()
ans = PO.getbitstr()
```

assign fault and re-run simulation

```python
X3.stuckat = 1
PI.setbitstr('000')
PI.propagate()
ans = PO.getbitstr()
```

# Reference:

[1] Wang et al. (2006). VLSI Test Principles and Architectures: Design for Testability. Elsevier Publish.
Deep-Fake-Detection 0.0.10
Deep Fake Detection Project
Requires Python: >=3.7


 

<h1 color="green"><b>Deep Fake Detection Package</b></h1>

---

<h1 color="green"><b>Abstract</b></h1>
<p>This project Deepfakes can distort our perception of the truth and we need to develop a strategy to improve their detection. Deep Fakes are increasingly detrimental to privacy, social security, and democracy. We plan to achieve better accuracy in predicting real and fake videos..</p>


<h1 color="green"><b>Instructions to Install our Deep Fake Detection Package</b></h1>


1. Install:

```python
pip install Deep-Fake-Detection
```

2. Import the DeepFake_Utils from deepfake_detection :

```python
from deepfake_detection import DeepFake_Utils
from moviepy.editor import *
```

3. Detect Detect the video is fake or not by Ensemble ResNext and Inception Custom Models :

```python
# Run the Below Function by Input your Video Path to get the outPutVideo with Label Fake on Real on it
DeepFake_Utils.Inference_on_video(OutputVideoPath,InputVideoPath)


# Show the Video
VideoFileClip(OutputVideoPath, audio=False, target_resolution=(300,None)).ipython_display()
```