-
Notifications
You must be signed in to change notification settings - Fork 1
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
Overhaul exercise for 2024 course #11
Merged
Changes from 31 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
04081c0
Begin change to Colored MNIST
adjavon 84f0a44
Update README overview
adjavon 354005a
wip: Add GAN script
adjavon 14d8e72
wip: Update tasks, parts 1-3
adjavon 4232d59
Add workflow for building notebooks
adjavon bfc68ba
Commit from GitHub Actions (Build Notebooks)
adjavon f43a1f5
Clean up tags for parts 1 and 2
adjavon 690d2d0
Commit from GitHub Actions (Build Notebooks)
adjavon ecef44d
Add EMA to UNet and validate GAN
adjavon 7afaef3
Restart training from checkpoint
adjavon 4fc7a43
Add stargan figure
adjavon f12e6d8
Reduce hard-coding in viewing results
adjavon 343e364
wip: Add explanations about the GAN trainig
adjavon 3d887bc
Commit from GitHub Actions (Build Notebooks)
adjavon b3d267d
wip: Add GAN training task
adjavon 3327629
wip: Begin evaluation of the counterfactuals using classifier
adjavon 03e6aaa
Commit from GitHub Actions (Build Notebooks)
adjavon 5e963df
wip: Add EMA to GAN training
adjavon 846525f
Commit from GitHub Actions (Build Notebooks)
adjavon 702c0e3
wip: Add discriminative attribution
adjavon b4595ab
Commit from GitHub Actions (Build Notebooks)
adjavon f864649
Finish style space, explanations, and conclusion
adjavon 33a6110
Commit from GitHub Actions (Build Notebooks)
adjavon c1a6e28
Fix numbering, missing todos, and plotting bug
adjavon 544c6a7
Commit from GitHub Actions (Build Notebooks)
adjavon 559ccf9
Update setup script
adjavon 14d5975
Merge branch '2024' of github.com:dlmbl/knowledge_extraction into 2024
adjavon 5ccd575
Commit from GitHub Actions (Build Notebooks)
adjavon 12a6ff9
Fix enviroment creation script
afoix 81652c5
update exercise number in the README.md
afoix 4921a76
Commit from GitHub Actions (Build Notebooks)
afoix 2599651
Ben/review (#12)
Ben-Salmon d759e63
Commit from GitHub Actions (Build Notebooks)
adjavon 83495ec
Fix exercise setup
adjavon 7d92477
Move data to extras
adjavon b454546
Split loss plot
adjavon 81751d2
Update README
adjavon 0fca9ec
Commit from GitHub Actions (Build Notebooks)
adjavon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build Notebooks | ||
on: | ||
push: | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install jupytext nbconvert | ||
|
||
|
||
- name: Build notebooks | ||
run: | | ||
jupytext --to ipynb --update-metadata '{"jupytext":{"cell_metadata_filter":"all"}}' solution.py | ||
|
||
jupyter nbconvert solution.ipynb --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags solution --to notebook --output exercise.ipynb | ||
jupyter nbconvert solution.ipynb --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook --output solution.ipynb | ||
|
||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
add: solution.ipynb exercise.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Contains the steps that I used to create the environment, for memory | ||
mamba create -n 08_knowledge_extraction python=3.11 pytorch torchvision pytorch-cuda=12.1 -c conda-forge -c pytorch -c nvidia | ||
mamba activate 08_knowledge_extraction | ||
pip install -r requirements.txt | ||
mamba env export > environment.yaml |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adjavon I have a question regarding the image. You explained that the dataset classifies by color, however, the different classes contain different colors. Is that OK? What is the logic behind the classes? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the very end of the solutions notebook!! 😈 🌈 🙊