-
Notifications
You must be signed in to change notification settings - Fork 58
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
Loading pytorch model from torchvision #409
base: master
Are you sure you want to change the base?
Conversation
This pull request introduces 10 alerts when merging 615a1cc into 9697837 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging f189e49 into 9697837 - view on LGTM.com new alerts:
|
Not sure what happened for it to look like it stalled, but the Travis-CI run failed, which should be viewable here. I'd suggest creating a virtualenv that does not have pytorch installed and check that the unit tests pass in that environment. |
Aha, I had multiple imports of the same library at different levels of the
code. I have tried my best to tie them up with the last commit. I also
tested the is_usable functionality by creating a new virtualenv without
torch. Let me know what you think.
Thank you
…On Mon, Apr 27, 2020 at 7:26 PM Paul Tunison ***@***.***> wrote:
Not sure what happened for it to look like it stalled, but the Travis-CI
run failed, which should be viewable here
<https://travis-ci.org/github/Kitware/SMQTK/builds/678675855>. I'd
suggest creating a virtualenv that does *not* have pytorch installed and
check that the unit tests pass in that environment.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#409 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH7RA5UK6RO2EKHHDPEO3N3ROYIB3ANCNFSM4MOQEN5A>
.
--
Regards,
Bhavan Vasu
Research and Development Engineer, Kitware Inc
|
I'm not sure why github isn't showing the link appropriately anymore, but please see the CI results for this PR here: https://travis-ci.org/github/Kitware/SMQTK/builds/680724077 Basically pytest is hitting every file and there are some that still have unprotected imports of torch/torchvision. |
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.
It would also be good to add some unit tests for this class. For example, initializing it with different "model_name" and "return_layer" values, testing for expected module results.
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/utils.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/utils.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
python/smqtk/algorithms/descriptor_generator/pytorchdescriptor/pytorch_model_descriptors.py
Outdated
Show resolved
Hide resolved
This pull request introduces 3 alerts when merging 6f741d3 into 9697837 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging c629a35 into 9697837 - view on LGTM.com new alerts:
|
Using PyTorch model currently requires the user to define the architecture for some commonly used models. Therefore, we make use of torchvision library to import PyTorch models using labels specifying the name of the model (i.e., resnet50, vgg16) and return layer for feature collection (i.e., avgpool, classifier.4).