add label studio and ml backend#6
Closed
montanier wants to merge 2 commits into
Closed
Conversation
cgoudet
reviewed
Jan 23, 2026
| with open(csv_file, 'r', encoding='utf-8-sig') as f: | ||
| reader = csv.DictReader(f, delimiter=';') | ||
|
|
||
| for row in reader: |
Collaborator
There was a problem hiding this comment.
Plutot qu'une grosse boucle on pourrait créer une fonction qui prend un row en entrée et appeler un map. Ca ferait un code plus organisé.
| except Exception: | ||
| return 'localhost' | ||
|
|
||
| def convert_csv_to_labelstudio(csv_file, output_file, limit=None, force=False, host=None): |
Collaborator
There was a problem hiding this comment.
On a déjà une pipeline qui transforme le CSV (à terme un appel API) en un parquet propre. C'est peut être plus pertinent de partir dessus.
| print(f"Converted {len(tasks)} tasks to {output_file}") | ||
|
|
||
| if __name__ == "__main__": | ||
| parser = argparse.ArgumentParser( |
Collaborator
There was a problem hiding this comment.
A la base j'aurais utilisé click que je trouve plus propre avec des decorateurs.
| from pathlib import Path | ||
|
|
||
|
|
||
| def get_lan_ip(): |
Collaborator
There was a problem hiding this comment.
On est obligé de réécrire ca? Il n'y a pas une lib pour ca?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A lot of cleaning is probably needed. But basically there is a labelstudio and an mlbackend with yolo running.