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

added swin swav model #975

Open
wants to merge 51 commits into
base: master
Choose a base branch
from

Conversation

AhmedHamdi101
Copy link

@AhmedHamdi101 AhmedHamdi101 commented Feb 7, 2023

What does this PR do?

Resolves #974

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests? [not needed for typos/docs]
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

  • Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Yea !

Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

can we get some tests for this addition?

@Borda Borda force-pushed the master branch 2 times, most recently from afdc09a to c5137b4 Compare May 19, 2023 17:15
@mergify mergify bot removed the has conflicts label May 21, 2023
@AhmedHamdi101
Copy link
Author

AhmedHamdi101 commented May 21, 2023

can we get some tests for this addition?

yeah sure, working on it.

@Borda
Copy link
Member

Borda commented Jun 29, 2023

@AhmedHamdi101 how is it going here? 🐰

@AhmedHamdi101
Copy link
Author

@AhmedHamdi101 how is it going here? 🐰

I am working on it, I will be submitting an update soon this week 😃

Ahmed Mohamed Hamdi Mohamed and others added 21 commits July 5, 2023 01:06
modified torchvision functions to be based on the library version.
Modified the MLP, Premute, and StochasticDepth definition

if not hasattr(torchvision.ops.misc, "MLP"):

class MLP(torch.nn.Sequential):
Copy link
Member

Choose a reason for hiding this comment

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

let's rather create a wrapper on init which checks the compatibility, this declaration under if is tricky as a user may have it or not hard to guess if because of old Bolts or other dependency

Copy link
Author

@AhmedHamdi101 AhmedHamdi101 Jul 11, 2023

Choose a reason for hiding this comment

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

@Borda can you elaborate more and give me a short example of what you mean 😅

Copy link
Member

Choose a reason for hiding this comment

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

we could use #1056 similar as Flas does but much simpler

Copy link
Author

Choose a reason for hiding this comment

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

@Borda I have used the function requires you mentioned but I modified the if condition in line 13-16
by adding a not
reqs = [ ModuleAvailableCache(mod_ver) if "." **not** in mod_ver else RequirementCache(mod_ver) for mod_ver in module_path_version ]
As I think there was a bug in it, please check it out.

Ahmed Mohamed Hamdi Mohamed and others added 7 commits July 10, 2023 18:19
to check on torchvision version
by adding a not in the if condition of reqs list
'feature/add_swav_swin' of github.com:AhmedHamdi101/lightning-bolts into
feature/add_swav_swin
@AhmedHamdi101
Copy link
Author

@Borda any updates? 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding swin to the self-supervised swav
2 participants