Skip to content

Commit

Permalink
fix img clf
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Dec 14, 2023
1 parent 9adc342 commit 00a7a80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.app
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM huggingface/autotrain-advanced:latest
CMD uvicorn autotrain.app:app --host 0.0.0.0 --port 7860 --reload --workers 4
2 changes: 1 addition & 1 deletion src/autotrain/cli/run_image_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def run(self):
valid_split=self.args.valid_split,
image_column=self.args.image_column,
target_column=self.args.target_column,
model_name=self.args.model,
model=self.args.model,
lr=self.args.lr,
epochs=self.args.epochs,
batch_size=self.args.batch_size,
Expand Down
8 changes: 4 additions & 4 deletions src/autotrain/trainers/image_classification/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def train(config):


if __name__ == "__main__":
args = parse_args()
training_config = json.load(open(args.training_config))
config = ImageClassificationParams(**training_config)
train(config)
_args = parse_args()
training_config = json.load(open(_args.training_config))
_config = ImageClassificationParams(**training_config)
train(_config)

0 comments on commit 00a7a80

Please sign in to comment.