-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
need to find a way to make the ssh key integration tests seperate
- Loading branch information
Showing
6 changed files
with
65 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Remote server for image hosting | ||
user: 'ben' | ||
host: 'serenity.ifas.ufl.edu' | ||
key_filename: '/Users/benweinstein/.ssh/id_rsa.pub' | ||
key_filename: '/home/b.weinstein/.ssh/id_rsa.pub' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
import hydra | ||
import os | ||
from omegaconf import DictConfig | ||
from src.pipeline import Pipeline | ||
from src.label_studio import get_api_key | ||
|
||
@hydra.main(config_path="conf", config_name="config") | ||
def main(cfg: DictConfig): | ||
"""Main entry point for the application""" | ||
api_key = get_api_key() | ||
os.environ["LABEL_STUDIO_API_KEY"] = api_key | ||
if api_key is None: | ||
print("Warning: No Label Studio API key found in .comet.config") | ||
return None | ||
|
||
# Initialize and run pipeline | ||
pipeline = Pipeline(cfg=cfg) | ||
results = pipeline.run(model_path=cfg.model.path) | ||
|
||
# Log results | ||
print(f"Images needing review: {len(results['needs_review'])}") | ||
print(f"Images not needing review: {len(results['no_review_needed'])}") | ||
results = pipeline.run() | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters