Skip to content

Add notebook for DarkIR model #2953

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

Merged
merged 4 commits into from
May 23, 2025
Merged

Add notebook for DarkIR model #2953

merged 4 commits into from
May 23, 2025

Conversation

sbalandi
Copy link
Collaborator

@sbalandi sbalandi commented May 19, 2025

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sbalandi sbalandi force-pushed the dark branch 3 times, most recently from e43d2b2 to cefbb8b Compare May 19, 2025 22:00
@sbalandi sbalandi requested a review from eaidova May 20, 2025 09:21
Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:43Z
----------------------------------------------------------------

Line #3.    %pip install --pre openvino==2025.2.0.* --extra-index-url=https://storage.openvinotoolkit.org/simple/wheels/nightly

why 2025.2.0.*? usually we use just -U and >=

(-U, --upgrade, will update openvino if found fresher version as the result the latest nightly will be installed)


sbalandi commented on 2025-05-22T20:55:26Z
----------------------------------------------------------------

changed to %pip install -q -U --pre openvino --extra-index-url=https://storage.openvinotoolkit.org/simple/wheels/nightly

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:44Z
----------------------------------------------------------------

please use clone_repo utility for repo cloning https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/utils/cmd_helper.py#L9

it will prevent errors in case if repo already clonned


sbalandi commented on 2025-05-22T20:55:33Z
----------------------------------------------------------------

updated

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:45Z
----------------------------------------------------------------

Line #6.    !huggingface-cli download {model_id} --local-dir {model_checkpoints_path.as_posix()}

could you please use huggingface_hub.snapshot_download python API instead of cli?

cmd options in notebooks may work unstable (command executed and filed e.g. due to connection error, but notebook execution continues and may lead to unexpected errors that difficult to debug in validation)


sbalandi commented on 2025-05-22T20:56:02Z
----------------------------------------------------------------

moved to snapshot_download

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:46Z
----------------------------------------------------------------

Line #4.    sys.path.append("DarkIR")

if you will use clone_repo, it can add it to path automatically. Also it is better to add it to beginning of path for avoid errors related to too long path variable


sbalandi commented on 2025-05-22T20:56:15Z
----------------------------------------------------------------

removed

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:47Z
----------------------------------------------------------------

it is better to move device closer to its usage (before model compilation) if there is no some device specific logic for model conversion


sbalandi commented on 2025-05-22T20:56:28Z
----------------------------------------------------------------

done

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:48Z
----------------------------------------------------------------

could you please check that model already converted and convert only if not?


sbalandi commented on 2025-05-22T20:57:37Z
----------------------------------------------------------------

add check 

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:48Z
----------------------------------------------------------------

not sure if it is good video example (video lighting good enough)


sbalandi commented on 2025-05-22T20:56:52Z
----------------------------------------------------------------

video changed

Copy link

review-notebook-app bot commented May 20, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-20T12:39:49Z
----------------------------------------------------------------

I see that the image becomes noisy after quantization, possibly some adjustments for the selection quantization algorithm are required. Are you sure that you select optimal smooth quant alpha?


@eaidova
Copy link
Contributor

eaidova commented May 20, 2025

@sbalandi , usually we prefer name notebooks as <model-name>-<task> could you please rename your notebook following this rule (e.g. darkir-image-restoration)?

Copy link
Collaborator Author

changed to %pip install -q -U --pre openvino --extra-index-url=https://storage.openvinotoolkit.org/simple/wheels/nightly


View entire conversation on ReviewNB

Copy link
Collaborator Author

updated


View entire conversation on ReviewNB

Copy link
Collaborator Author

moved to snapshot_download


View entire conversation on ReviewNB

Copy link
Collaborator Author

removed


View entire conversation on ReviewNB

Copy link
Collaborator Author

done


View entire conversation on ReviewNB

Copy link
Collaborator Author

video changed


View entire conversation on ReviewNB

Copy link
Collaborator Author

add check 


View entire conversation on ReviewNB

@sbalandi sbalandi force-pushed the dark branch 2 times, most recently from 6fcc368 to a731e9c Compare May 22, 2025 22:00
Copy link

review-notebook-app bot commented May 23, 2025

View / edit / reply to this conversation on ReviewNB

eaidova commented on 2025-05-23T09:21:16Z
----------------------------------------------------------------

Line #3.    %pip install -q -U --pre openvino --extra-index-url=https://storage.openvinotoolkit.org/simple/wheels/nightly

pip install -q -U --pre "openvino>2025.1.0" --extra-index-url=https://storage.openvinotoolkit.org/simple/wheels/nightly

">" is needed for nightly validation to automatically remove this line and use preinstalled ov and for release preparation (to understand should it be updated when new release will be publically available or not)


sbalandi commented on 2025-05-23T09:45:20Z
----------------------------------------------------------------

thank you, updated

Copy link
Collaborator Author

thank you, updated


View entire conversation on ReviewNB

@eaidova eaidova merged commit 5c393b3 into openvinotoolkit:latest May 23, 2025
17 checks passed
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.

3 participants