Increase image resolution to 512x512 in training and verification

- Update train2.py and verify2.py to use 512x512 image resize instead of 224x224
- Add grep command permission to Claude settings
This commit is contained in:
Fam Zheng 2026-01-24 12:25:45 +00:00
parent df71e4b63e
commit 3715bafcb4
3 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,8 @@
"allow": [
"Bash(curl:*)",
"Bash(git restore:*)",
"Read(//home/fam/src/themblem/api/products/**)"
"Read(//home/fam/src/themblem/api/products/**)",
"Bash(grep:*)"
],
"deny": [],
"ask": []

View File

@ -584,7 +584,7 @@ def main():
# Define transforms
transform = transforms.Compose([
transforms.Resize((224, 224)),
transforms.Resize((512, 512)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
])

View File

@ -289,7 +289,7 @@ def main():
# Define transforms
transform = transforms.Compose([
transforms.Resize((224, 224)),
transforms.Resize((512, 512)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
])