Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] Creating basic image classifier with Elixir #2

Merged
merged 30 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
105b434
feat: Initial commit. #1
LuchoTurtle Oct 30, 2023
c8acd88
chore: Adding rest of initial setup and README. #1
LuchoTurtle Oct 30, 2023
c355232
chore: Starting out. #1
LuchoTurtle Oct 30, 2023
6fcc31c
chore: Initial setup. #1
LuchoTurtle Oct 30, 2023
da92870
chore: Adding LiveView. #1
LuchoTurtle Oct 30, 2023
35de4c9
feat: Automatically consuming entries. #1
LuchoTurtle Oct 30, 2023
449da94
chore: Trying to use JS to show image preview.
LuchoTurtle Oct 31, 2023
0895a06
chore: Using LiveView's original functions to preview image.
LuchoTurtle Oct 31, 2023
db05b5f
chore: Changing text
LuchoTurtle Nov 1, 2023
9c09eb0
feat: Adding basic prediction with resnet-50.
LuchoTurtle Nov 1, 2023
bc83032
chore: Removing mogrify and simplifying code.
LuchoTurtle Nov 2, 2023
9343d59
chore: Increase max file size and fixing pre-processing not passing c…
LuchoTurtle Nov 6, 2023
50612b4
feat: Adding documentation for implementing with Bumblebee.
LuchoTurtle Nov 6, 2023
a4f742e
chore: Setting up testing.
LuchoTurtle Nov 6, 2023
01a89ff
chore: Updating tests.
LuchoTurtle Nov 6, 2023
bf9cacd
chore: Updating dependencies.
LuchoTurtle Nov 6, 2023
564bcc6
chore: Adding testing support system.
LuchoTurtle Nov 6, 2023
a8220f3
chore: Changing some terms to "captioning".
LuchoTurtle Nov 6, 2023
054f3f3
fix: Adding supervisor so we can await the tasks in tests.
LuchoTurtle Nov 7, 2023
050dd8c
chore: Getting coverage to 100%.
LuchoTurtle Nov 7, 2023
5f9e858
chore: Adding supervised tests.
LuchoTurtle Nov 7, 2023
5e4c698
chore: Adding workflows.
LuchoTurtle Nov 7, 2023
1cd3d49
feat: Adding image preview.
LuchoTurtle Nov 7, 2023
098ae7f
chore: Adding readme section about previewing image.
LuchoTurtle Nov 7, 2023
046b81a
fix: Remove warning of pattern matching when consuming files.
LuchoTurtle Nov 7, 2023
c183662
feat: Adding section to use other models.
LuchoTurtle Nov 7, 2023
be51917
chore: Making form available to reupload image.
LuchoTurtle Nov 8, 2023
824026c
chore: Centering.
LuchoTurtle Nov 8, 2023
7f9b2b4
chore: Resizing image.
LuchoTurtle Nov 8, 2023
c1c4dcf
fix typos and minor updates #1
nelsonic Nov 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
import_deps: [:phoenix],
plugins: [Phoenix.LiveView.HTMLFormatter],
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}"]
]
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: mix
directory: "/"
schedule:
interval: daily
time: "07:00"
timezone: Europe/London
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Elixir CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Build and test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.14.2' # Define the elixir version [required]
otp-version: '25.1.2' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run Tests
run: mix coveralls.json
env:
MIX_ENV: test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
41 changes: 34 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
/_build
/cover
/deps
/doc
# The directory Mix will write compiled artifacts to.
/_build/

# If you run "mix test --cover", coverage assets end up here.
/cover/

# The directory Mix downloads your dependencies sources to.
/deps/

# Where 3rd-party dependencies like ExDoc output generated docs.
/doc/

# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch

# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Also ignore archive artifacts (built via "mix archive.build").
*.ez
*.beam
/config/*.secret.exs
.elixir_ls/

# Temporary files, for example, from tests.
/tmp/

# Ignore package tarball (built via "mix hex.build").
app-*.tar

# Ignore assets that are produced by build tools.
/priv/static/assets/

# Ignore digested assets cache.
/priv/static/cache_manifest.json

# In case you use Node.js/npm, you want to ignore these.
npm-debug.log
/assets/node_modules/

Loading
Loading