-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Tutorials : Pretraining VGG from Scrtach #2971
base: main
Are you sure you want to change the base?
Conversation
saving and loading a general checkpoint.py \n intial -> initial
toctree : Image and Video Pretraining Vgg from scratch
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2971
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -0,0 +1,643 @@ | |||
""" | |||
In this tutorial, we will embark on an exciting journey to build and |
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.
Please follow this template . Your tutorials should have: Title, a short abstract, Author, Overview, Steps, and Conclusion. Please maintain a third-person narrative throughout the document. Avoid using first-person pronouns like "I" and instead use "we". Use active voice where possible.
Follow Pytorch Tutorial convetion Modify I -> We
Add More things to try , Conclusion , Further Reading
Hi @svekars, could you please help to take a look of this PR? |
pyspell fixed
add packagge install code
add packagge install code
Hi @svekars, could you please help to take a look of this PR again? |
remove tqdm
pyspell check,add albumentations installation code
Hi @svekars , could you please help to take a look of this PR again? |
Co-authored-by: Joel Schlosser <[email protected]>
@svekars Are there any other things I need to fix? |
This tutorial takes almost 200 minutes to build: https://docs-preview.pytorch.org/pytorch/tutorials/2971/beginner/Pretraining_Vgg_from_scratch.html which we can't support. I suggest you convert this to |
val_data.transform= A.Compose( | ||
[ | ||
A.Normalize(), | ||
A.SmallestMaxSize(max_size=val_data.S), | ||
A.CenterCrop(height =224,width=224) | ||
] | ||
|
||
) |
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.
Can you please run lintrunner -a
(from here) on the code blocks throughout using the .lintrunner.toml
config provided in the base PyTorch repo dir? The use of whitespace is inconsistent and makes the logic hard to read
change .py to .rst
.py to .rst
@svekars Hi. svekars I changed .html to .rst file and added it to begginer_source as .rst instead of .py. Sorry for the delay. |
Hi @svekars . |
|
||
First, let's import the required dependencies: | ||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 67-92 |
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.
.. GENERATED FROM PYTHON SOURCE LINES 67-92 |
|
||
.. DO NOT EDIT. | ||
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. | ||
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: | ||
.. "beginner/Pretraining_Vgg_from_scratch.py" | ||
.. LINE NUMBERS ARE GIVEN BELOW. | ||
|
||
.. only:: html | ||
|
||
.. note:: | ||
:class: sphx-glr-download-link-note | ||
|
||
Click :ref:`here <sphx_glr_download_beginner_Pretraining_Vgg_from_scratch.py>` | ||
to download the full example code | ||
|
||
.. rst-class:: sphx-glr-example-title | ||
|
||
.. _sphx_glr_beginner_Pretraining_Vgg_from_scratch.py: | ||
|
||
|
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.
.. DO NOT EDIT. | |
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. | |
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: | |
.. "beginner/Pretraining_Vgg_from_scratch.py" | |
.. LINE NUMBERS ARE GIVEN BELOW. | |
.. only:: html | |
.. note:: | |
:class: sphx-glr-download-link-note | |
Click :ref:`here <sphx_glr_download_beginner_Pretraining_Vgg_from_scratch.py>` | |
to download the full example code | |
.. rst-class:: sphx-glr-example-title | |
.. _sphx_glr_beginner_Pretraining_Vgg_from_scratch.py: |
Setup | ||
-------- | ||
|
||
.. note:: if you are running this in Google Colab, install ``albumentations`` by running: |
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.
.. note:: if you are running this in Google Colab, install ``albumentations`` by running: | |
.. note:: If you are running this in Google Colab, install ``albumentations`` by running: |
|
||
|
||
|
||
|
||
|
||
|
||
.. rst-class:: sphx-glr-script-out | ||
|
||
.. code-block:: none | ||
|
||
albumentations are already installed | ||
|
||
|
||
|
||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 93-100 | ||
|
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.
.. rst-class:: sphx-glr-script-out | |
.. code-block:: none | |
albumentations are already installed | |
.. GENERATED FROM PYTHON SOURCE LINES 93-100 |
which means increasing the size of an image while maintaining its proportions, | ||
preventing distortion and maintaining the consistency of the object. | ||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 100-140 |
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.
.. GENERATED FROM PYTHON SOURCE LINES 100-140 |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 228-238 | ||
|
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.
.. GENERATED FROM PYTHON SOURCE LINES 228-238 |
* ``Config_channels``: This refers to the number of output channels for each layer. | ||
* ``Config_kernels``: This refers to the kernel size (or filter size) for each layer. | ||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 238-266 |
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.
.. GENERATED FROM PYTHON SOURCE LINES 238-266 |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 267-269 |
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.
.. GENERATED FROM PYTHON SOURCE LINES 267-269 |
|
||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 269-363 |
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.
.. GENERATED FROM PYTHON SOURCE LINES 269-363 |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. GENERATED FROM PYTHON SOURCE LINES 364-377 |
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.
.. GENERATED FROM PYTHON SOURCE LINES 364-377 |
apply suggestion pull request pytorch#2971
Fixes #ISSUE_NUMBER
Description
I make a new tutorial training VGG from scratch . There are no tutorials traning Vgg from scratch.
Checklist
cc @subramen @albanD