Skip to content

Commit

Permalink
Rename components for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Nov 28, 2023
1 parent 84542c8 commit e9f73c6
Show file tree
Hide file tree
Showing 48 changed files with 18 additions and 18 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ You can add this component to your pipeline using the following code:
from fondant.pipeline import ComponentOp


image_cropping_op = ComponentOp.from_registry(
name="image_cropping",
crop_images_op = ComponentOp.from_registry(
name="crop_images",
arguments={
# Add arguments
# "cropping_threshold": -30,
# "padding": 10,
}
)
pipeline.add_op(image_cropping_op, dependencies=[...]) #Add previous component as dependency
pipeline.add_op(crop_images_op, dependencies=[...]) #Add previous component as dependency
```

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ You can add this component to your pipeline using the following code:
from fondant.pipeline import ComponentOp


image_resolution_extraction_op = ComponentOp.from_registry(
name="image_resolution_extraction",
extract_image_resolution_op = ComponentOp.from_registry(
name="extract_image_resolution",
arguments={
# Add arguments
}
)
pipeline.add_op(image_resolution_extraction_op, dependencies=[...]) #Add previous component as dependency
pipeline.add_op(extract_image_resolution_op, dependencies=[...]) #Add previous component as dependency
```

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ You can add this component to your pipeline using the following code:
from fondant.pipeline import ComponentOp


language_filter_op = ComponentOp.from_registry(
name="language_filter",
filter_language_op = ComponentOp.from_registry(
name="filter_language",
arguments={
# Add arguments
# "language": "en",
}
)
pipeline.add_op(language_filter_op, dependencies=[...]) #Add previous component as dependency
pipeline.add_op(filter_language_op, dependencies=[...]) #Add previous component as dependency
```

### Testing
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ You can add this component to your pipeline using the following code:
from fondant.pipeline import ComponentOp


minhash_generator_op = ComponentOp.from_registry(
name="minhash_generator",
generate_minhash_op = ComponentOp.from_registry(
name="generate_minhash",
arguments={
# Add arguments
# "shingle_ngram_size": 3,
}
)
pipeline.add_op(minhash_generator_op, dependencies=[...]) #Add previous component as dependency
pipeline.add_op(generate_minhash_op, dependencies=[...]) #Add previous component as dependency
```

### Testing
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ You can add this component to your pipeline using the following code:
from fondant.pipeline import ComponentOp


embedding_based_laion_retrieval_op = ComponentOp.from_registry(
name="embedding_based_laion_retrieval",
retrieve_laion_by_embedding_op = ComponentOp.from_registry(
name="retrieve_laion_by_embedding",
arguments={
# Add arguments
# "num_images": 0,
# "aesthetic_score": 9,
# "aesthetic_weight": 0.5,
}
)
pipeline.add_op(embedding_based_laion_retrieval_op, dependencies=[...]) #Add previous component as dependency
pipeline.add_op(retrieve_laion_by_embedding_op, dependencies=[...]) #Add previous component as dependency
```

### Testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ You can add this component to your pipeline using the following code:
from fondant.pipeline import ComponentOp


prompt_based_laion_retrieval_op = ComponentOp.from_registry(
name="prompt_based_laion_retrieval",
retrieve_laion_by_prompt_op = ComponentOp.from_registry(
name="retrieve_laion_by_prompt",
arguments={
# Add arguments
# "num_images": 0,
Expand All @@ -48,7 +48,7 @@ prompt_based_laion_retrieval_op = ComponentOp.from_registry(
# "url": "https://knn.laion.ai/knn-service",
}
)
pipeline.add_op(prompt_based_laion_retrieval_op, dependencies=[...]) #Add previous component as dependency
pipeline.add_op(retrieve_laion_by_prompt_op, dependencies=[...]) #Add previous component as dependency
```

### Testing
Expand Down

0 comments on commit e9f73c6

Please sign in to comment.