Zai commited on
Commit
db97677
0 Parent(s):

project init

Browse files
CONTRIBUTING.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing to headshot
2
+
3
+ Thank you for considering contributing to headshot! Please take a moment to review the following guidelines.
4
+
5
+ ## Code of Conduct
6
+
7
+ This project and everyone participating in it are governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you agree to uphold this code. Please report unacceptable behavior to [your email or a dedicated email for issues].
8
+
9
+ ## How to Contribute
10
+
11
+ 1. Fork the repository.
12
+
13
+ 2. Clone the forked repository to your local machine:
14
+
15
+ ```bash
16
+ git clone https://github.com/zaibutcooler/headshot.git
17
+ ```
18
+
19
+ 3. Create a new branch for your feature or bug fix:
20
+
21
+ ```bash
22
+ git checkout -b feature-name
23
+ ```
24
+
25
+ 4. Make your changes and commit them with a descriptive commit message:
26
+
27
+ ```bash
28
+ git add .
29
+ git commit -m "Add your descriptive message here"
30
+ ```
31
+
32
+ 5. Push the changes to your fork:
33
+
34
+ ```bash
35
+ git push origin feature-name
36
+ ```
37
+
38
+ 6. Create a pull request (PR) from your fork to the main repository.
39
+
40
+ 7. Ensure your PR title and description are clear and concise.
41
+
42
+ ## Reporting Issues
43
+
44
+ If you find any issues or have suggestions, please open an issue on the [Issue Tracker](https://github.com/zaibutcooler/headshot/issues).
45
+
46
+ ## Style Guide
47
+
48
+ - Follow the existing coding style.
49
+ - Use meaningful variable and function names.
50
+ - Write clear and concise documentation.
51
+
52
+ ## License
53
+
54
+ By contributing, you agree that your contributions will be licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
55
+
56
+ Thank you for contributing to headshot!
README.md ADDED
@@ -0,0 +1 @@
 
 
1
+ # Headshot Project
headshot/data_prep.py ADDED
File without changes
headshot/headshot.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from torch import nn
3
+
4
+ class Headshot(nn.Module):
5
+ def __init__(self):
6
+ super().__init__()
7
+
8
+ def forward(self,x):
9
+ pass
headshot/utils.py ADDED
File without changes
interface/app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+
4
+ def main():
5
+ st.title("Head shot")
6
+ st.write("Simulate wartime and get the headshot using python")
7
+
8
+
9
+ if __name__ == '__main__':
10
+ main()
requirements.txt ADDED
File without changes
tests/test_interface.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # test_demo.py
2
+ import unittest
3
+
4
+ def add_numbers(a, b):
5
+ return a + b
6
+
7
+ def multiply_numbers(a, b):
8
+ return a * b
9
+
10
+ class TestDemoFunctions(unittest.TestCase):
11
+
12
+ def test_add_numbers(self):
13
+ self.assertEqual(add_numbers(2, 3), 5)
14
+ self.assertEqual(add_numbers(-1, 1), 0)
15
+ # Add more test cases as needed
16
+
17
+ def test_multiply_numbers(self):
18
+ self.assertEqual(multiply_numbers(2, 3), 6)
19
+ self.assertEqual(multiply_numbers(-1, 1), -1)
20
+ # Add more test cases as needed
21
+
22
+ if __name__ == '__main__':
23
+ unittest.main()
training.py ADDED
@@ -0,0 +1 @@
 
 
1
+ num_epochs=30