Skip to content

Cifar100#1

Open
AndrewVynnytskyi wants to merge 15 commits into
mainfrom
cifar100
Open

Cifar100#1
AndrewVynnytskyi wants to merge 15 commits into
mainfrom
cifar100

Conversation

@AndrewVynnytskyi

Copy link
Copy Markdown
Owner

No description provided.

rojikaru and others added 3 commits September 20, 2025 19:03
flatten fully-connected layer input
add return to VGG16 forward pass
add metaparameters to cifar100 vgg16 runner
Copilot AI review requested due to automatic review settings September 21, 2025 16:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a machine learning project focused on CIFAR-100 classification using PyTorch, along with code formatting and configuration improvements.

  • Implements a CIFAR-100 ResNet50 transfer learning solution with data augmentation, early stopping, and fine-tuning
  • Standardizes code formatting across existing files using Black formatter
  • Adds development environment configuration and pre-commit hooks

Reviewed Changes

Copilot reviewed 11 out of 25 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
CIFAR100_ResNET.ipynb New CIFAR-100 classification notebook with ResNet50 transfer learning
pyproject.toml Code quality configuration for Black and Flake8
.pre-commit-config.yaml Pre-commit hooks for code formatting and linting
.vscode/settings.json VS Code Python formatting and linting settings
first_tries*.py, MNIST_a.py, CIFAR10_a.ipynb, tf.ipynb, torch.ipynb Code formatting standardization (quotes, spacing, line breaks)
mnist_config.py Removed empty line at beginning
Files not reviewed (10)
  • .idea/.gitignore: Language not supported
  • .idea/PythonProject.iml: Language not supported
  • .idea/copilot.data.migration.agent.xml: Language not supported
  • .idea/copilot.data.migration.ask.xml: Language not supported
  • .idea/copilot.data.migration.ask2agent.xml: Language not supported
  • .idea/copilot.data.migration.edit.xml: Language not supported
  • .idea/inspectionProfiles/profiles_settings.xml: Language not supported
  • .idea/misc.xml: Language not supported
  • .idea/modules.xml: Language not supported
  • .idea/vcs.xml: Language not supported
Comments suppressed due to low confidence (1)

CIFAR100_ResNET.ipynb:1

  • Line 165 is incorrect. You're setting model.fc to a boolean value instead of making the parameters trainable. Should use model.fc.requires_grad_(True) on each parameter of the layer, or better yet, iterate through the parameters: for param in model.fc.parameters(): param.requires_grad = True
{

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .vscode/settings.json
"editor.wordBasedSuggestions": "off",
"editor.formatOnType": true,
"editor.inlineSuggest.suppressSuggestions": false,
"editor.defaultFormatter": "ms-python.black-formatter",

Copilot AI Sep 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the trailing comma after the last property in the JSON object. Trailing commas are not valid in JSON and may cause parsing errors.

Suggested change
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.defaultFormatter": "ms-python.black-formatter"

Copilot uses AI. Check for mistakes.
Comment thread CIFAR100_ResNET.ipynb
" n_samples = len(test_loader.dataset)\n",
" for images, labels in test_loader:\n",
" images, labels = images.to(device), labels.to(device)\n",
" outputs = model(images)\n",

Copilot AI Sep 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use load_model instead of model since you're evaluating the loaded model, not the original training model. The line should be outputs = load_model(images)

Suggested change
" outputs = model(images)\n",
" outputs = load_model(images)\n",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants