-
Notifications
You must be signed in to change notification settings - Fork 1.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
add dints model #3344
add dints model #3344
Conversation
Signed-off-by: dongy <dongy@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
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.
thanks, please see the comments in-line, and also there are some style checks https://deepsource.io/gh/Project-MONAI/MONAI/run/553698d2-c29b-4f8c-998a-4433e3c90521/python/ for your consideration
Signed-off-by: Nic Ma <nma@nvidia.com>
Hi @ericspod , Thanks very much for your help here. ops_sum = 0
for i, o in enumerate(ops):
if o == 1:
ops_sum += self.ops[i](x) * o * weight[i]
return ops_sum But still got the TorchScript error about index:
I tried to change the index value but didn't solve it.. do you have any idea? Thanks in advance. |
for more information, see https://pre-commit.ci
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: dongy <dongy@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
/black |
I'm getting some compatible modules for torchscript, still testing them |
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
/build |
@Nic-Ma, ops_sum = 0
for i in range(len(ops)):
if ops[i] == 1:
ops_sum += self.ops[i](x) * ops[i] * weight[i]
return ops_sum Torchscript can understand what to do with |
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
/build |
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
/build |
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.
We added the basic APIs for DiNTS, with both 2d and 3D support.
after the architecture search, the generated network structure is compatible with torchscript JIT. We may have follow-up PRs to revise the details, but the general functionality is tested locally with the tutorials.
Signed-off-by: dongy dongy@nvidia.com
fixes #3106
core component of https://openaccess.thecvf.com/content/CVPR2021/papers/He_DiNTS_Differentiable_Neural_Network_Topology_Search_for_3D_Medical_Image_CVPR_2021_paper.pdf
Description
this is the primary PR that's needed for https://github.com/Project-MONAI/MONAI/milestone/28, the rest of the milestone could be done via the tutorial repo.
Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests
.make html
command in thedocs/
folder.