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

Fixes ci tests in example notebooks #725

Merged
merged 4 commits into from
Jul 25, 2023
Merged

Fixes ci tests in example notebooks #725

merged 4 commits into from
Jul 25, 2023

Conversation

dcaustin33
Copy link
Contributor

Fixes an issue for those with cuml library installed where we tried to apply umap to embeddings even though semseg does not have any embeddings.

@dcaustin33 dcaustin33 marked this pull request as ready for review July 25, 2023 18:22
@dcaustin33 dcaustin33 requested a review from a team as a code owner July 25, 2023 18:22
@@ -262,7 +262,7 @@ def upload(
proj_run = f"{config.current_project_id}/{config.current_run_id}"
location = f"{self.LOG_FILE_DIR}/{proj_run}"

if cuml_available():
if cuml_available() and config.task_type != 'semantic_segmentation':
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if cuml_available() and config.task_type != 'semantic_segmentation':
if cuml_available() and config.task_type != TaskType.semantic_segmentation:

Copy link
Contributor

@elboy3 elboy3 left a comment

Choose a reason for hiding this comment

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

formatting issue and pls use TaskType, then good to go

@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2023

Codecov Report

Merging #725 (0fb7ece) into main (4872bc0) will increase coverage by 0.20%.
Report is 2 commits behind head on main.
The diff coverage is 98.20%.

@@            Coverage Diff             @@
##             main     #725      +/-   ##
==========================================
+ Coverage   89.55%   89.75%   +0.20%     
==========================================
  Files         167      168       +1     
  Lines       13409    13592     +183     
==========================================
+ Hits        12008    12200     +192     
+ Misses       1401     1392       -9     
Files Changed Coverage Δ
dataquality/core/log.py 95.55% <ø> (ø)
...quality/loggers/data_logger/text_classification.py 92.78% <ø> (+0.51%) ⬆️
dataquality/utils/hf_images.py 94.44% <ø> (+7.48%) ⬆️
tests/test_utils/mock_data.py 92.85% <86.36%> (-7.15%) ⬇️
...uality/loggers/data_logger/image_classification.py 87.59% <97.56%> (+12.59%) ⬆️
dataquality/integrations/fastai.py 86.75% <100.00%> (+0.06%) ⬆️
...ataquality/loggers/data_logger/base_data_logger.py 89.44% <100.00%> (+0.44%) ⬆️
tests/integrations/fastai/test_cv_fai.py 98.03% <100.00%> (ø)
tests/loggers/test_image_classification.py 100.00% <100.00%> (ø)
tests/loggers/test_log_image_dataset.py 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bogdan-galileo
Copy link
Contributor

I re-ran the failing tests, it worked for me this AM (the dq yolo one failing for a weird reason)

@dcaustin33 dcaustin33 merged commit b78fc3d into main Jul 25, 2023
@dcaustin33 dcaustin33 deleted the fix/semseg_embs branch July 25, 2023 19:23
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.

5 participants