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

110: Replace MO CLI with Python API and use PTQ nncf API #965

Merged

Conversation

aleksandr-mokrov
Copy link
Contributor

@aleksandr-mokrov aleksandr-mokrov commented Mar 29, 2023

  1. MO CLI is replaced with Python API
  2. POT is replaced with PTQ nncf API.
  3. 110-ct-segmentation-quantize.ipynb is removed. Only 110-ct-segmentation-quantize-nncf.ipynb is actual.
  4. pytorch-monai-training.ipynb is updated: PyTorch Lightning has new incompatible interface (Remove memory-retaining epoch-end hooks Lightning-AI/pytorch-lightning#16520 for example), F1 score metric from POT replaced by BinaryF1Score from torchmetrics.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

… Usage of pytorch-lightning is changed due to new incompatible interface. 110-ct-segmentation-quantize.ipynb is deleted as outdated (replaced by 110-ct-segmentation-quantize-nncf.ipynb).
@aleksandr-mokrov aleksandr-mokrov changed the title WIP: 110: Replace MO CLI with Python API and use PTQ nncf API 110: Replace MO CLI with Python API and use PTQ nncf API Apr 3, 2023
@@ -28,7 +28,7 @@
"\n",
Copy link
Contributor

@eaidova eaidova Apr 5, 2023

Choose a reason for hiding this comment

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

Line #2.    NIFTI_PATH = Path("~/PycharmProjects/default/kits19/data").expanduser()

please restore path


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@eaidova
Copy link
Contributor

eaidova commented Apr 5, 2023

@aleksandr-mokrov you have merge conflict, could you please resolve it?

# Conflicts:
#	notebooks/110-ct-segmentation-quantize/110-ct-segmentation-quantize.ipynb
@eaidova
Copy link
Contributor

eaidova commented Apr 5, 2023

 notebooks/110-ct-segmentation-quantize/110-ct-segmentation-quantize-nncf.ipynb:cell_3:38:5: F401 'nncf.NNCFConfig' imported but unused
notebooks/110-ct-segmentation-quantize/110-ct-segmentation-quantize-nncf.ipynb:cell_3:39:5: F401 'nncf.torch.create_compressed_model' imported but unused
notebooks/110-ct-segmentation-quantize/110-ct-segmentation-quantize-nncf.ipynb:cell_3:39:5: F401 'nncf.torch.register_default_init_args' imported but unused

@aleksandr-mokrov please remove unused imports

@eaidova eaidova merged commit 96cdc50 into openvinotoolkit:main Apr 5, 2023
Ravindu987 pushed a commit to Ravindu987/openvino_notebooks that referenced this pull request Apr 14, 2023
…lkit#965)

* Removing yaspin from dependencies

* F1 score metric from POT replaced by BinaryF1Score from torchmetrics. Usage of pytorch-lightning is changed due to new incompatible interface. 110-ct-segmentation-quantize.ipynb is deleted as outdated (replaced by 110-ct-segmentation-quantize-nncf.ipynb).

* Improved description

* Keep previous configuration

* Return max_epochs to 1 if CPU

* Return the default path.

* Unused import is removed

* Unused import is removed
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

Successfully merging this pull request may close these issues.

None yet

2 participants