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

Is this ready to use in our exercises? #14

Closed
pattonw opened this issue Jul 23, 2024 · 7 comments
Closed

Is this ready to use in our exercises? #14

pattonw opened this issue Jul 23, 2024 · 7 comments

Comments

@pattonw
Copy link

pattonw commented Jul 23, 2024

  • dlmbl-unet version: main branch
  • Python version: 3.11.9
  • Operating System: MacOS

Description

Use dlmbl_unet

What I Did

pip install. This downgraded torch:

 - torch==2.3.1
 + torch==2.2.0
 - torchvision==0.18.1
 + torchvision==0.17.0

Is this downgrade important?

Added dependency from github dlmbl_unet = git @ https://github.com/dlmbl-unet to my requirements.txt. There are banners on the README that indicate the intention is to publish to pypi. Is there anything blocking this currently?

@pattonw
Copy link
Author

pattonw commented Jul 23, 2024

importing also means this code will not be easily accessible to the students who may want to play around with / modify the UNet. Would it be better to include this library as a git submodule, then install it in editable mode in the setup.sh script?
I think this would make it easier for the students to inspect the code they are using and debug in the cases where they pass in invalid arguments

@neptunes5thmoon
Copy link
Contributor

I think initially the intention was to publish to pypi but I don't wanna be in charge of a dlmbl pypi account (but that is where it should live). so tbd if we have time to convince the bosses to set that up.

They should be familiar with the UNet from the unet exercise and importing will make it easier to also use in the project phase, so I'm tending towards keeping it as a normal import. If someone is advanced enough that they wanna modify the UNet further I think they can figure out how to drop it in from the exercise or this library.

As for the downgrade I think it's TBD whether we need that... iirc this is currently there due to the hardware in Milan. So will have to test once we have the TA machines.

@neptunes5thmoon
Copy link
Contributor

And yes, it's ready to use in exercises :)

@pattonw
Copy link
Author

pattonw commented Jul 23, 2024

You don't necessarily need to be in charge of the DLMBL pypi account. You just need to get one of the bosses to create the account, and add a pypi api key to the organization. Then you can publish via a github action that has access to the token.

@neptunes5thmoon
Copy link
Contributor

yes :) but that requires one of the bosses to have time to do that. Might be a prep day type of task

@neptunes5thmoon
Copy link
Contributor

I removed the pin for now

@neptunes5thmoon
Copy link
Contributor

tracking pypi publication in #17

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

No branches or pull requests

2 participants