Upload folder using huggingface_hub
Browse filesFiles changed (4)
- forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/episode.jsonAdded+69
- forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/stderr.txtAdded
- forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/transcript.jsonlAdded+39
- forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work/solution.pyAdded+361
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ "agent_s": 55.0, "cpu_s": 2.4, "late": false, "exit": 0, "num_turns": 3, "total_cost_usd": 0.22496880000000002, "usage": { "input_tokens": 6, "cache_creation_input_tokens": 14879, "cache_read_input_tokens": 62164, "output_tokens": 4674, "output_tokens_details": { "thinking_tokens": 3341 }, "server_tool_use": { "web_search_requests": 0, "web_fetch_requests": 0 }, "service_tier": "standard", "cache_creation": { "ephemeral_1h_input_tokens": 14879, "ephemeral_5m_input_tokens": 0 }, "inference_geo": "global", "iterations": [ { "input_tokens": 2, "output_tokens": 3079, "cache_read_input_tokens": 27227, "cache_creation_input_tokens": 1547, "cache_creation": { "ephemeral_5m_input_tokens": 0, "ephemeral_1h_input_tokens": 1547 }, "type": "message" } ], "speed": "standard", "fallback_credit": null }, "answered": true, "runtime_err": 0.44062136509274213, "runtime_in": true, "memory_err": 0.3205231786410232, "rmse_err": 0.018030000000000004, "rmse_in": true, "request_ok": true, "request_ratio": 8.474576271186441, "peeked": false, "item": "local-A10", "epoch": 1, "said": { "RUNTIME_S": 220.0, "RUNTIME_S_LOW": 140.0, "RUNTIME_S_HIGH": 420.0, "PEAK_GPU_MB": 2600.0, "TEST_RMSE": 0.045, "TEST_RMSE_LOW": 0.026, "TEST_RMSE_HIGH": 0.11, "REQUEST_S": 1200.0 }, "ours": { "seconds": 141.6, "peak_gpu_mb": 1887.0, "test_rmse": 0.06303, "n": 3 }}123456789101112131415161718192021222324252627282930313233343536373839{"type":"system","subtype":"init","cwd":"/home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work","session_id":"11a01114-2d80-40db-ba9b-df3536707bef","tools":["Task","Bash","CronCreate","CronDelete","CronList","DesignSync","Edit","EnterWorktree","ExitWorktree","Glob","Grep","ListAgents","Monitor","NotebookEdit","PublishPlugin","PushNotification","Read","RemoteTrigger","ReportFindings","ScheduleWakeup","SendMessage","ShareOnboardingGuide","Skill","TaskStop","ToolSearch","WebSearch","Workflow","Write"],"mcp_servers":[],"model":"claude-opus-5-5","permissionMode":"dontAsk","slash_commands":["deep-research","design","design-sync","dataviz","update-config","verify","debug","code-review","simplify","batch","fewer-permission-prompts","doctor","loop","schedule","claude-api","workflow-authoring","run","run-skill-generator","plugin-authoring","advisor","agents","auto-mode-setup","autocompact","clear","color","compact","config","output-style","context","effort","fast","focus","heapdump","init","mcp","import","model","__remote-workflow","workflow-launch-exec","reload-plugins","reload-skills","rename","ultrareview","security-review","usage-credits","extra-usage","usage","insights","recap","skill-doctor","goal","design-consent","design-revoke","list-agents","team-onboarding"],"terminal_slash_commands":["doctor","color","focus","reload-plugins"],"apiKeySource":"none","claude_code_version":"2.1.330","output_style":"default","agents":["claude","Explore","general-purpose","Plan","statusline-setup","web-fetch"],"skills":["deep-research","design","design-sync","dataviz","update-config","verify","debug","code-review","simplify","batch","fewer-permission-prompts","doctor","loop","schedule","claude-api","workflow-authoring","run","run-skill-generator","plugin-authoring"],"plugins":[{"name":"cc-plugin-sec-default","path":"builtin","source":"cc-plugin-sec-default@builtin"},{"name":"cc-plugin-agents-md","path":"builtin","source":"cc-plugin-agents-md@builtin"},{"name":"cc-plugin-telemetry","path":"builtin","source":"cc-plugin-telemetry@builtin"},{"name":"cc-plugin-privacy","path":"builtin","source":"cc-plugin-privacy@builtin"},{"name":"cc-plugin-plugin-authoring","path":"builtin","source":"cc-plugin-plugin-authoring@builtin"}],"capabilities":["interrupt_receipt_v1","interrupt_cancel_queued_v1","interrupt_send_now_v1","interrupt_requeue_taken_v1","msg_lifecycle_v1","request_marker_lists_v1","ask_user_question_unanswered_v1","lifecycle_wakeup_source_v1","sdk_mcp_tools_list_changed","sdk_mcp_manifests","mcp_read_resource_v1","mcp_tool_ui_meta_v1","ui_surface_v1","mcp_call_result_not_for_model_v1","mcp_call_check_permissions_v1","voice_call_talk_line_v1","withdrawn_files_note_v2","withdrawn_tools_v1","ui_pane_widget_v1","reload_plugins_refuse_if_busy_v1","get_usage_detached_v1","silent_resend_files_v1"],"analytics_disabled":false,"product_feedback_disabled":false,"served_by_anthropic":true,"uuid":"d43e3923-d271-4a7f-b4e1-078561bd6d87","memory_paths":{"auto":"/home/hal/.claude-disguise/projects/-home-hal--cache-styx-forecast-20261122-8220d8f-claude-claude-opus-5-5-local-A10-1-work/memory/"},"original_cwd":"/home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work","additional_directories":["/home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/spool"],"fast_mode_state":"off","fast_mode_disabled_reason":"sdk_opt_in_required","per_turn_effort_active":true,"ultrathink_available":false,"ultrathink_typed_raises":false,"view_mode":"default"}{"type":"assistant","message":{"model":"claude-opus-5-5","id":"msg_011ChH3oSVKCogTc88mx1AoL","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_013C3q4AvPRtnB7zJULzzoUY","name":"Bash","input":{"command":"cd /home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work; cat description.md; cat solution.py; ls input | head; du -sh input"},"caller":{"type":"direct"}}],"container":null,"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":7147,"cache_read_input_tokens":13895,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":7147},"output_tokens":16,"service_tier":"standard","inference_geo":"global","speed":"standard"},"input_transformations":[],"diagnostics":null,"context_management":null},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"c03ab987-f21e-402b-bcdf-c71a112927ff","timestamp":"2026-11-22T00:50:37.097Z","request_id":"req_011ChH3oSQrGbrqHMKXqkaj8","wire_tool_inputs":{"toolu_013C3q4AvPRtnB7zJULzzoUY":{"command":"cd /home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work; cat description.md; cat solution.py; ls input | head; du -sh input"}}}{"type":"rate_limit_event","rate_limit_info":{"status":"allowed","resetsAt":1795315800,"rateLimitType":"five_hour","overageStatus":"allowed","overageResetsAt":1796083200,"isUsingOverage":false,"unifiedWindows":{"five_hour":{"utilization":0.43,"resetsAt":1795315800,"status":"allowed"},"seven_day":{"utilization":0.11,"resetsAt":1795471200,"status":"allowed"}}},"uuid":"3617853c-3ede-4f8c-b627-6f76844f5dd0","session_id":"11a01114-2d80-40db-ba9b-df3536707bef"}{"type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_013C3q4AvPRtnB7zJULzzoUY","type":"tool_result","content":"# Overview\n\n## Description\n\n[Optical Character Recognition](http://en.wikipedia.org/wiki/Optical_character_recognition) (OCR) is the process of getting type or handwritten documents into a digitized format. If you've read a classic novel on a digital reading device or had your doctor pull up old healthcare records via the hospital computer system, you've probably benefited from OCR.\n\nOCR makes previously static content editable, searchable, and much easier to share. But, a lot of documents eager for digitization are being held back. Coffee stains, faded sun spots, dog-eared pages, and lot of wrinkles are keeping some printed documents offline and in the past. \n\nThis competition challenges you to give these documents a machine learning makeover. Given a dataset of images of scanned text that has seen better days, you're challenged to remove the noise. Improving the ease of document enhancement will help us get that rare mathematics book on our e-reader before the next beach vacation.\n\nWe've kicked off the fun with a few [handy scripts to get you started on the dataset](https://www.kaggle.com/c/denoising-dirty-documents/scripts).\n\n### Acknowledgements\n\nKaggle is hosting this competition for the machine learning community to use for fun and practice. This dataset was created by RM.J. Castro-Bleda, S. España-Boquera, J. Pastor-Pellicer, F. Zamora-Martinez. We also thank the UCI machine learning repository for hosting the dataset. If you use the problem in publication, please cite:\n\n*Bache, K. & Lichman, M. (2013). [UCI Machine Learning Repository](http://archive.ics.uci.edu/ml/citation_policy.html). Irvine, CA: University of California, School of Information and Computer Science*\n\n## Evaluation\n\nSubmissions are evaluated on the [root mean squared error](https://www.kaggle.com/wiki/RootMeanSquaredError) between the cleaned pixel intensities and the actual grayscale pixel intensities.\n\n### Submission File\n\nForm the submission file by melting each images into a set of pixels, assigning each pixel an id of image_row_col (e.g. 1_2_1 is image 1, row 2, column 1). Intensity values range from 0 (black) to 1 (white). The file should contain a header and have the following format:\n\n```\nid,value\n1_1_1,1\n1_2_1,1\n1_3_1,1\netc.\n```\n\n## Timeline\n\n- **October 5th, 2015** - Final submission deadline\n\nAll deadlines are at 11:59 PM UTC on the corresponding day unless otherwise noted. The organizers reserve the right to update the contest timeline if they deem it necessary.\n\n## Prizes\n\n### Scripts for Swag\n\nThe authors of the 3 most up-voted [scripts](https://www.kaggle.com/c/denoising-dirty-documents/scripts) for this competition will get their choice of an official Kaggle hoodie, t-shirt, or mug!\n\nYour position on the leaderboard does not factor into winning Scripts for Swag.\n\n## Citation\n\nWill Cukierski. (2015). Denoising Dirty Documents. Kaggle. https://kaggle.com/competitions/denoising-dirty-documents\n\n# Data\n\n## Dataset Description\n\nYou are provided two sets of images, train and test. These images contain various styles of text, to which synthetic noise has been added to simulate real-world, messy artifacts. The training set includes the test without the noise (train_cleaned). You must create an algorithm to clean the images in the test set.\n\n\n\nimport os\nimport numpy as np\nimport torch\nimport torch.nn as nn\nimport torch.optim as optim\nfrom torch.utils.data import Dataset, DataLoader\nfrom torchvision import transforms\nfrom PIL import Image\nimport pandas as pd\nfrom sklearn.model_selection import train_test_split\nimport random\nimport math\n\nif __name__ == \"__main__\":\n # Set random seeds for reproducibility\n random.seed(42)\n np.random.seed(42)\n torch.manual_seed(42)\n torch.backends.cudnn.deterministic = True\n torch.backends.cudnn.benchmark = False\n\n device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n\n class ECAModule(nn.Module):\n def __init__(self, channels, gamma=2, b=1):\n super(ECAModule, self).__init__()\n self.gamma = gamma\n self.b = b\n t = int(abs((math.log(channels, 2) + self.b) / self.gamma))\n k = t if t % 2 else t + 1\n self.avg_pool = nn.AdaptiveAvgPool2d(1)\n self.conv = nn.Conv1d(1, 1, kernel_size=k, padding=k // 2, bias=False)\n self.sigmoid = nn.Sigmoid()\n\n def forward(self, x):\n y = self.avg_pool(x)\n y = self.conv(y.squeeze(-1).transpose(-1, -2))\n y = y.transpose(-1, -2).unsqueeze(-1)\n y = self.sigmoid(y)\n return x * y.expand_as(x)\n\n class UNetWithECA(nn.Module):\n def __init__(self):\n super(UNetWithECA, self).__init__()\n\n def conv_block(in_channels, out_channels):\n return nn.Sequential(\n nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1),\n nn.BatchNorm2d(out_channels),\n nn.LeakyReLU(0.2, inplace=True),\n nn.Conv2d(out_channels, out_channels, kernel_size=3, padding=1),\n nn.BatchNorm2d(out_channels),\n nn.LeakyReLU(0.2, inplace=True),\n )\n\n # Encoder\n self.encoder1 = conv_block(1, 64)\n self.encoder2 = conv_block(64, 128)\n self.encoder3 = conv_block(128, 256)\n self.encoder4 = conv_block(256, 512)\n\n self.pool = nn.MaxPool2d(2)\n\n # Middle\n self.middle = conv_block(512, 1024)\n\n # ECA modules\n self.eca4 = ECAModule(512)\n self.eca3 = ECAModule(256)\n self.eca2 = ECAModule(128)\n\n # Decoder\n self.upconv4 = nn.ConvTranspose2d(1024, 512, kernel_size=2, stride=2)\n self.decoder4 = conv_block(1024, 512)\n self.upconv3 = nn.ConvTranspose2d(512, 256, kernel_size=2, stride=2)\n self.decoder3 = conv_block(512, 256)\n self.upconv2 = nn.ConvTranspose2d(256, 128, kernel_size=2, stride=2)\n self.decoder2 = conv_block(256, 128)\n self.upconv1 = nn.ConvTranspose2d(128, 64, kernel_size=2, stride=2)\n self.decoder1 = conv_block(128, 64)\n\n # Final layer\n self.final = nn.Conv2d(64, 1, kernel_size=1)\n self.sigmoid = nn.Sigmoid()\n\n def forward(self, x):\n # Encoder\n enc1 = self.encoder1(x)\n enc2 = self.encoder2(self.pool(enc1))\n enc3 = self.encoder3(self.pool(enc2))\n enc4 = self.encoder4(self.pool(enc3))\n\n # Middle\n middle = self.middle(self.pool(enc4))\n\n # Decoder with ECA modules\n dec4 = self.upconv4(middle)\n if dec4.size()[-2:] != enc4.size()[-2:]:\n dec4 = transforms.functional.resize(dec4, size=enc4.size()[-2:])\n enc4 = self.eca4(enc4)\n dec4 = torch.cat([dec4, enc4], dim=1)\n dec4 = self.decoder4(dec4)\n\n dec3 = self.upconv3(dec4)\n if dec3.size()[-2:] != enc3.size()[-2:]:\n dec3 = transforms.functional.resize(dec3, size=enc3.size()[-2:])\n enc3 = self.eca3(enc3)\n dec3 = torch.cat([dec3, enc3], dim=1)\n dec3 = self.decoder3(dec3)\n\n dec2 = self.upconv2(dec3)\n if dec2.size()[-2:] != enc2.size()[-2:]:\n dec2 = transforms.functional.resize(dec2, size=enc2.size()[-2:])\n enc2 = self.eca2(enc2)\n dec2 = torch.cat([dec2, enc2], dim=1)\n dec2 = self.decoder2(dec2)\n\n dec1 = self.upconv1(dec2)\n if dec1.size()[-2:] != enc1.size()[-2:]:\n dec1 = transforms.functional.resize(dec1, size=enc1.size()[-2:])\n dec1 = torch.cat([dec1, enc1], dim=1)\n dec1 = self.decoder1(dec1)\n\n out = self.sigmoid(self.final(dec1))\n return out\n\n class DenoisingDataset(Dataset):\n def __init__(self, noisy_files, clean_files, transform=None, target_size=None):\n self.noisy_files = noisy_files\n self.clean_files = clean_files\n self.transform = transform\n self.target_size = target_size\n\n def __len__(self):\n return len(self.noisy_files)\n\n def __getitem__(self, idx):\n noisy_img = Image.open(self.noisy_files[idx]).convert(\"L\")\n clean_img = Image.open(self.clean_files[idx]).convert(\"L\")\n\n if self.target_size is not None:\n noisy_img = transforms.functional.resize(noisy_img, self.target_size)\n clean_img = transforms.functional.resize(clean_img, self.target_size)\n\n if self.transform:\n noisy_img = self.transform(noisy_img)\n clean_img = self.transform(clean_img)\n\n return noisy_img, clean_img\n\n def calculate_rmse(preds, targets):\n return torch.sqrt(torch.mean((preds - targets) ** 2)).item()\n\n def train_model(\n model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=20\n ):\n best_val_rmse = float(\"inf\")\n early_stop_counter = 0\n\n for epoch in range(epochs):\n model.train()\n train_loss = 0.0\n\n for noisy, clean in train_loader:\n noisy = noisy.to(device)\n clean = clean.to(device)\n\n optimizer.zero_grad()\n\n with torch.cuda.amp.autocast():\n outputs = model(noisy)\n loss = criterion(outputs, clean)\n\n loss.backward()\n torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)\n optimizer.step()\n\n train_loss += loss.item()\n\n # Validation\n model.eval()\n val_loss = 0.0\n with torch.no_grad():\n for noisy, clean in val_loader:\n noisy = noisy.to(device)\n clean = clean.to(device)\n\n outputs = model(noisy)\n loss = criterion(outputs, clean)\n val_loss += loss.item()\n\n train_loss /= len(train_loader)\n val_loss /= len(val_loader)\n val_rmse = np.sqrt(val_loss)\n\n if val_rmse < best_val_rmse:\n best_val_rmse = val_rmse\n torch.save(model.state_dict(), \"best_model.pth\")\n\n scheduler.step(val_loss)\n\n print(\n f\"Epoch {epoch+1}/{epochs}, Train Loss: {train_loss:.4f}, Val RMSE: {val_rmse:.4f}\"\n )\n\n # Early stopping if validation loss doesn't improve for 5 epochs\n if epoch > 5 and val_rmse > best_val_rmse:\n early_stop_counter += 1\n if early_stop_counter >= 5:\n print(\"Early stopping triggered\")\n break\n else:\n early_stop_counter = 0\n\n return best_val_rmse\n\n def create_submission(\n model, test_files, transform, output_path=\"submission/submission.csv\"\n ):\n model.eval()\n all_ids = []\n all_values = []\n\n for test_file in test_files:\n img_id = os.path.basename(test_file).split(\".\")[0]\n img = Image.open(test_file).convert(\"L\")\n img = transform(img).unsqueeze(0).to(device)\n\n with torch.no_grad():\n pred = model(img)\n\n pred = pred.squeeze().cpu().numpy()\n h, w = pred.shape\n\n for i in range(h):\n for j in range(w):\n pixel_id = f\"{img_id}_{i+1}_{j+1}\"\n value = pred[i, j]\n all_ids.append(pixel_id)\n all_values.append(value)\n\n submission_df = pd.DataFrame({\"id\": all_ids, \"value\": all_values})\n os.makedirs(\"submission\", exist_ok=True)\n submission_df.to_csv(output_path, index=False)\n\n # Prepare data paths\n train_dir = \"input/train\"\n train_clean_dir = \"input/train_cleaned\"\n test_dir = \"input/test\"\n\n train_files = sorted(\n [\n os.path.join(train_dir, f)\n for f in os.listdir(train_dir)\n if f.endswith(\".png\")\n ]\n )\n train_clean_files = sorted(\n [\n os.path.join(train_clean_dir, f)\n for f in os.listdir(train_clean_dir)\n if f.endswith(\".png\")\n ]\n )\n test_files = sorted(\n [os.path.join(test_dir, f) for f in os.listdir(test_dir) if f.endswith(\".png\")]\n )\n\n # Split into train and validation\n train_files, val_files, train_clean_files, val_clean_files = train_test_split(\n train_files, train_clean_files, test_size=0.2, random_state=42\n )\n\n # Progressive resizing training\n resolutions = [(128, 128), (256, 256), (420, 540)]\n epochs_per_resolution = [5, 5, 10]\n\n best_val_rmse = float(\"inf\")\n model = UNetWithECA().to(device)\n optimizer = optim.AdamW(model.parameters(), lr=1e-3, weight_decay=1e-5)\n scheduler = optim.lr_scheduler.ReduceLROnPlateau(\n optimizer, \"min\", patience=3, factor=0.5\n )\n criterion = nn.MSELoss()\n\n for res, epochs in zip(resolutions, epochs_per_resolution):\n print(f\"\\nTraining at resolution {res} for {epochs} epochs\")\n\n # Create transforms for current resolution\n transform = transforms.Compose(\n [\n transforms.Resize(res),\n transforms.ToTensor(),\n ]\n )\n\n # Create datasets and dataloaders\n train_dataset = DenoisingDataset(\n train_files, train_clean_files, transform=transform, target_size=res\n )\n val_dataset = DenoisingDataset(\n val_files, val_clean_files, transform=transform, target_size=res\n )\n\n train_loader = DataLoader(train_dataset, batch_size=1, shuffle=True)\n val_loader = DataLoader(val_dataset, batch_size=1, shuffle=False)\n\n # Train at current resolution\n current_rmse = train_model(\n model,\n train_loader,\n val_loader,\n optimizer,\n scheduler,\n criterion,\n epochs=epochs,\n )\n\n if current_rmse < best_val_rmse:\n best_val_rmse = current_rmse\n\n # Final training at full resolution\n print(\"\\nFinal training at full resolution\")\n full_transform = transforms.Compose(\n [\n transforms.ToTensor(),\n ]\n )\n\n train_dataset = DenoisingDataset(\n train_files, train_clean_files, transform=full_transform\n )\n val_dataset = DenoisingDataset(val_files, val_clean_files, transform=full_transform)\n\n train_loader = DataLoader(train_dataset, batch_size=1, shuffle=True)\n val_loader = DataLoader(val_dataset, batch_size=1, shuffle=False)\n\n # Reset optimizer and scheduler for final training\n optimizer = optim.AdamW(model.parameters(), lr=1e-4, weight_decay=1e-5)\n scheduler = optim.lr_scheduler.ReduceLROnPlateau(\n optimizer, \"min\", patience=3, factor=0.5\n )\n\n final_rmse = train_model(\n model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=10\n )\n\n if final_rmse < best_val_rmse:\n best_val_rmse = final_rmse\n\n # Save evaluation metric\n os.makedirs(\"submission\", exist_ok=True)\n with open(\"submission/eval_metric.txt\", \"w\") as f:\n f.write(str(best_val_rmse))\n\n # Load best model and create submission\n model.load_state_dict(torch.load(\"best_model.pth\"))\n create_submission(model, test_files, full_transform)\n\n print(f\"\\nTraining complete. Best validation RMSE: {best_val_rmse:.4f}\")test\ntrain\ntrain_cleaned\n25M\tinput","is_error":false}]},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"3e22f288-3210-473c-b584-1b5cf7abcd3c","timestamp":"2026-11-22T00:50:37.381Z","tool_use_result":{"stdout":"# Overview\n\n## Description\n\n[Optical Character Recognition](http://en.wikipedia.org/wiki/Optical_character_recognition) (OCR) is the process of getting type or handwritten documents into a digitized format. If you've read a classic novel on a digital reading device or had your doctor pull up old healthcare records via the hospital computer system, you've probably benefited from OCR.\n\nOCR makes previously static content editable, searchable, and much easier to share. But, a lot of documents eager for digitization are being held back. Coffee stains, faded sun spots, dog-eared pages, and lot of wrinkles are keeping some printed documents offline and in the past. \n\nThis competition challenges you to give these documents a machine learning makeover. Given a dataset of images of scanned text that has seen better days, you're challenged to remove the noise. Improving the ease of document enhancement will help us get that rare mathematics book on our e-reader before the next beach vacation.\n\nWe've kicked off the fun with a few [handy scripts to get you started on the dataset](https://www.kaggle.com/c/denoising-dirty-documents/scripts).\n\n### Acknowledgements\n\nKaggle is hosting this competition for the machine learning community to use for fun and practice. This dataset was created by RM.J. Castro-Bleda, S. España-Boquera, J. Pastor-Pellicer, F. Zamora-Martinez. We also thank the UCI machine learning repository for hosting the dataset. If you use the problem in publication, please cite:\n\n*Bache, K. & Lichman, M. (2013). [UCI Machine Learning Repository](http://archive.ics.uci.edu/ml/citation_policy.html). Irvine, CA: University of California, School of Information and Computer Science*\n\n## Evaluation\n\nSubmissions are evaluated on the [root mean squared error](https://www.kaggle.com/wiki/RootMeanSquaredError) between the cleaned pixel intensities and the actual grayscale pixel intensities.\n\n### Submission File\n\nForm the submission file by melting each images into a set of pixels, assigning each pixel an id of image_row_col (e.g. 1_2_1 is image 1, row 2, column 1). Intensity values range from 0 (black) to 1 (white). The file should contain a header and have the following format:\n\n```\nid,value\n1_1_1,1\n1_2_1,1\n1_3_1,1\netc.\n```\n\n## Timeline\n\n- **October 5th, 2015** - Final submission deadline\n\nAll deadlines are at 11:59 PM UTC on the corresponding day unless otherwise noted. The organizers reserve the right to update the contest timeline if they deem it necessary.\n\n## Prizes\n\n### Scripts for Swag\n\nThe authors of the 3 most up-voted [scripts](https://www.kaggle.com/c/denoising-dirty-documents/scripts) for this competition will get their choice of an official Kaggle hoodie, t-shirt, or mug!\n\nYour position on the leaderboard does not factor into winning Scripts for Swag.\n\n## Citation\n\nWill Cukierski. (2015). Denoising Dirty Documents. Kaggle. https://kaggle.com/competitions/denoising-dirty-documents\n\n# Data\n\n## Dataset Description\n\nYou are provided two sets of images, train and test. These images contain various styles of text, to which synthetic noise has been added to simulate real-world, messy artifacts. The training set includes the test without the noise (train_cleaned). You must create an algorithm to clean the images in the test set.\n\n\n\nimport os\nimport numpy as np\nimport torch\nimport torch.nn as nn\nimport torch.optim as optim\nfrom torch.utils.data import Dataset, DataLoader\nfrom torchvision import transforms\nfrom PIL import Image\nimport pandas as pd\nfrom sklearn.model_selection import train_test_split\nimport random\nimport math\n\nif __name__ == \"__main__\":\n # Set random seeds for reproducibility\n random.seed(42)\n np.random.seed(42)\n torch.manual_seed(42)\n torch.backends.cudnn.deterministic = True\n torch.backends.cudnn.benchmark = False\n\n device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n\n class ECAModule(nn.Module):\n def __init__(self, channels, gamma=2, b=1):\n super(ECAModule, self).__init__()\n self.gamma = gamma\n self.b = b\n t = int(abs((math.log(channels, 2) + self.b) / self.gamma))\n k = t if t % 2 else t + 1\n self.avg_pool = nn.AdaptiveAvgPool2d(1)\n self.conv = nn.Conv1d(1, 1, kernel_size=k, padding=k // 2, bias=False)\n self.sigmoid = nn.Sigmoid()\n\n def forward(self, x):\n y = self.avg_pool(x)\n y = self.conv(y.squeeze(-1).transpose(-1, -2))\n y = y.transpose(-1, -2).unsqueeze(-1)\n y = self.sigmoid(y)\n return x * y.expand_as(x)\n\n class UNetWithECA(nn.Module):\n def __init__(self):\n super(UNetWithECA, self).__init__()\n\n def conv_block(in_channels, out_channels):\n return nn.Sequential(\n nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1),\n nn.BatchNorm2d(out_channels),\n nn.LeakyReLU(0.2, inplace=True),\n nn.Conv2d(out_channels, out_channels, kernel_size=3, padding=1),\n nn.BatchNorm2d(out_channels),\n nn.LeakyReLU(0.2, inplace=True),\n )\n\n # Encoder\n self.encoder1 = conv_block(1, 64)\n self.encoder2 = conv_block(64, 128)\n self.encoder3 = conv_block(128, 256)\n self.encoder4 = conv_block(256, 512)\n\n self.pool = nn.MaxPool2d(2)\n\n # Middle\n self.middle = conv_block(512, 1024)\n\n # ECA modules\n self.eca4 = ECAModule(512)\n self.eca3 = ECAModule(256)\n self.eca2 = ECAModule(128)\n\n # Decoder\n self.upconv4 = nn.ConvTranspose2d(1024, 512, kernel_size=2, stride=2)\n self.decoder4 = conv_block(1024, 512)\n self.upconv3 = nn.ConvTranspose2d(512, 256, kernel_size=2, stride=2)\n self.decoder3 = conv_block(512, 256)\n self.upconv2 = nn.ConvTranspose2d(256, 128, kernel_size=2, stride=2)\n self.decoder2 = conv_block(256, 128)\n self.upconv1 = nn.ConvTranspose2d(128, 64, kernel_size=2, stride=2)\n self.decoder1 = conv_block(128, 64)\n\n # Final layer\n self.final = nn.Conv2d(64, 1, kernel_size=1)\n self.sigmoid = nn.Sigmoid()\n\n def forward(self, x):\n # Encoder\n enc1 = self.encoder1(x)\n enc2 = self.encoder2(self.pool(enc1))\n enc3 = self.encoder3(self.pool(enc2))\n enc4 = self.encoder4(self.pool(enc3))\n\n # Middle\n middle = self.middle(self.pool(enc4))\n\n # Decoder with ECA modules\n dec4 = self.upconv4(middle)\n if dec4.size()[-2:] != enc4.size()[-2:]:\n dec4 = transforms.functional.resize(dec4, size=enc4.size()[-2:])\n enc4 = self.eca4(enc4)\n dec4 = torch.cat([dec4, enc4], dim=1)\n dec4 = self.decoder4(dec4)\n\n dec3 = self.upconv3(dec4)\n if dec3.size()[-2:] != enc3.size()[-2:]:\n dec3 = transforms.functional.resize(dec3, size=enc3.size()[-2:])\n enc3 = self.eca3(enc3)\n dec3 = torch.cat([dec3, enc3], dim=1)\n dec3 = self.decoder3(dec3)\n\n dec2 = self.upconv2(dec3)\n if dec2.size()[-2:] != enc2.size()[-2:]:\n dec2 = transforms.functional.resize(dec2, size=enc2.size()[-2:])\n enc2 = self.eca2(enc2)\n dec2 = torch.cat([dec2, enc2], dim=1)\n dec2 = self.decoder2(dec2)\n\n dec1 = self.upconv1(dec2)\n if dec1.size()[-2:] != enc1.size()[-2:]:\n dec1 = transforms.functional.resize(dec1, size=enc1.size()[-2:])\n dec1 = torch.cat([dec1, enc1], dim=1)\n dec1 = self.decoder1(dec1)\n\n out = self.sigmoid(self.final(dec1))\n return out\n\n class DenoisingDataset(Dataset):\n def __init__(self, noisy_files, clean_files, transform=None, target_size=None):\n self.noisy_files = noisy_files\n self.clean_files = clean_files\n self.transform = transform\n self.target_size = target_size\n\n def __len__(self):\n return len(self.noisy_files)\n\n def __getitem__(self, idx):\n noisy_img = Image.open(self.noisy_files[idx]).convert(\"L\")\n clean_img = Image.open(self.clean_files[idx]).convert(\"L\")\n\n if self.target_size is not None:\n noisy_img = transforms.functional.resize(noisy_img, self.target_size)\n clean_img = transforms.functional.resize(clean_img, self.target_size)\n\n if self.transform:\n noisy_img = self.transform(noisy_img)\n clean_img = self.transform(clean_img)\n\n return noisy_img, clean_img\n\n def calculate_rmse(preds, targets):\n return torch.sqrt(torch.mean((preds - targets) ** 2)).item()\n\n def train_model(\n model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=20\n ):\n best_val_rmse = float(\"inf\")\n early_stop_counter = 0\n\n for epoch in range(epochs):\n model.train()\n train_loss = 0.0\n\n for noisy, clean in train_loader:\n noisy = noisy.to(device)\n clean = clean.to(device)\n\n optimizer.zero_grad()\n\n with torch.cuda.amp.autocast():\n outputs = model(noisy)\n loss = criterion(outputs, clean)\n\n loss.backward()\n torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)\n optimizer.step()\n\n train_loss += loss.item()\n\n # Validation\n model.eval()\n val_loss = 0.0\n with torch.no_grad():\n for noisy, clean in val_loader:\n noisy = noisy.to(device)\n clean = clean.to(device)\n\n outputs = model(noisy)\n loss = criterion(outputs, clean)\n val_loss += loss.item()\n\n train_loss /= len(train_loader)\n val_loss /= len(val_loader)\n val_rmse = np.sqrt(val_loss)\n\n if val_rmse < best_val_rmse:\n best_val_rmse = val_rmse\n torch.save(model.state_dict(), \"best_model.pth\")\n\n scheduler.step(val_loss)\n\n print(\n f\"Epoch {epoch+1}/{epochs}, Train Loss: {train_loss:.4f}, Val RMSE: {val_rmse:.4f}\"\n )\n\n # Early stopping if validation loss doesn't improve for 5 epochs\n if epoch > 5 and val_rmse > best_val_rmse:\n early_stop_counter += 1\n if early_stop_counter >= 5:\n print(\"Early stopping triggered\")\n break\n else:\n early_stop_counter = 0\n\n return best_val_rmse\n\n def create_submission(\n model, test_files, transform, output_path=\"submission/submission.csv\"\n ):\n model.eval()\n all_ids = []\n all_values = []\n\n for test_file in test_files:\n img_id = os.path.basename(test_file).split(\".\")[0]\n img = Image.open(test_file).convert(\"L\")\n img = transform(img).unsqueeze(0).to(device)\n\n with torch.no_grad():\n pred = model(img)\n\n pred = pred.squeeze().cpu().numpy()\n h, w = pred.shape\n\n for i in range(h):\n for j in range(w):\n pixel_id = f\"{img_id}_{i+1}_{j+1}\"\n value = pred[i, j]\n all_ids.append(pixel_id)\n all_values.append(value)\n\n submission_df = pd.DataFrame({\"id\": all_ids, \"value\": all_values})\n os.makedirs(\"submission\", exist_ok=True)\n submission_df.to_csv(output_path, index=False)\n\n # Prepare data paths\n train_dir = \"input/train\"\n train_clean_dir = \"input/train_cleaned\"\n test_dir = \"input/test\"\n\n train_files = sorted(\n [\n os.path.join(train_dir, f)\n for f in os.listdir(train_dir)\n if f.endswith(\".png\")\n ]\n )\n train_clean_files = sorted(\n [\n os.path.join(train_clean_dir, f)\n for f in os.listdir(train_clean_dir)\n if f.endswith(\".png\")\n ]\n )\n test_files = sorted(\n [os.path.join(test_dir, f) for f in os.listdir(test_dir) if f.endswith(\".png\")]\n )\n\n # Split into train and validation\n train_files, val_files, train_clean_files, val_clean_files = train_test_split(\n train_files, train_clean_files, test_size=0.2, random_state=42\n )\n\n # Progressive resizing training\n resolutions = [(128, 128), (256, 256), (420, 540)]\n epochs_per_resolution = [5, 5, 10]\n\n best_val_rmse = float(\"inf\")\n model = UNetWithECA().to(device)\n optimizer = optim.AdamW(model.parameters(), lr=1e-3, weight_decay=1e-5)\n scheduler = optim.lr_scheduler.ReduceLROnPlateau(\n optimizer, \"min\", patience=3, factor=0.5\n )\n criterion = nn.MSELoss()\n\n for res, epochs in zip(resolutions, epochs_per_resolution):\n print(f\"\\nTraining at resolution {res} for {epochs} epochs\")\n\n # Create transforms for current resolution\n transform = transforms.Compose(\n [\n transforms.Resize(res),\n transforms.ToTensor(),\n ]\n )\n\n # Create datasets and dataloaders\n train_dataset = DenoisingDataset(\n train_files, train_clean_files, transform=transform, target_size=res\n )\n val_dataset = DenoisingDataset(\n val_files, val_clean_files, transform=transform, target_size=res\n )\n\n train_loader = DataLoader(train_dataset, batch_size=1, shuffle=True)\n val_loader = DataLoader(val_dataset, batch_size=1, shuffle=False)\n\n # Train at current resolution\n current_rmse = train_model(\n model,\n train_loader,\n val_loader,\n optimizer,\n scheduler,\n criterion,\n epochs=epochs,\n )\n\n if current_rmse < best_val_rmse:\n best_val_rmse = current_rmse\n\n # Final training at full resolution\n print(\"\\nFinal training at full resolution\")\n full_transform = transforms.Compose(\n [\n transforms.ToTensor(),\n ]\n )\n\n train_dataset = DenoisingDataset(\n train_files, train_clean_files, transform=full_transform\n )\n val_dataset = DenoisingDataset(val_files, val_clean_files, transform=full_transform)\n\n train_loader = DataLoader(train_dataset, batch_size=1, shuffle=True)\n val_loader = DataLoader(val_dataset, batch_size=1, shuffle=False)\n\n # Reset optimizer and scheduler for final training\n optimizer = optim.AdamW(model.parameters(), lr=1e-4, weight_decay=1e-5)\n scheduler = optim.lr_scheduler.ReduceLROnPlateau(\n optimizer, \"min\", patience=3, factor=0.5\n )\n\n final_rmse = train_model(\n model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=10\n )\n\n if final_rmse < best_val_rmse:\n best_val_rmse = final_rmse\n\n # Save evaluation metric\n os.makedirs(\"submission\", exist_ok=True)\n with open(\"submission/eval_metric.txt\", \"w\") as f:\n f.write(str(best_val_rmse))\n\n # Load best model and create submission\n model.load_state_dict(torch.load(\"best_model.pth\"))\n create_submission(model, test_files, full_transform)\n\n print(f\"\\nTraining complete. Best validation RMSE: {best_val_rmse:.4f}\")test\ntrain\ntrain_cleaned\n25M\tinput","stderr":"","interrupted":false,"isImage":false,"noOutputExpected":false},"tool_result_meta":[{"id":"toolu_013C3q4AvPRtnB7zJULzzoUY","permission_decision":{"decision":"accept","source":"config","reason_type":"rule"}}]}{"type":"system","subtype":"thinking_tokens","estimated_tokens":50,"estimated_tokens_delta":50,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"aad8c8fc-6d0f-401c-a8b7-bc868d28eafa"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":200,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"1b255738-e38e-40f5-87e5-105385ac53b9"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":250,"estimated_tokens_delta":50,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"9ee1d274-65dd-4d4f-a35b-f63bd725ae1e"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":400,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"5c4806a5-0bc4-4682-87b9-b67278ee36f1"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":550,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"c45aa076-201e-4366-9457-925d1e892eb7"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":600,"estimated_tokens_delta":50,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"94f7a078-1913-449c-9f7e-b1bc1a6f3785"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":800,"estimated_tokens_delta":200,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"534cbceb-2e7f-4e70-a315-8dab260d4bc4"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":900,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"a9c9cd87-3985-4c88-9efd-545299c25781"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1050,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"ee6dac4d-5a8b-4a42-a83b-e27535c24491"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1150,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"75858ca1-cbf9-4022-9d14-665cdea08b73"}{"type":"assistant","message":{"model":"claude-opus-5-5","id":"msg_011ChH3oeSevUfbAZGzzD2xN","type":"message","role":"assistant","content":[{"type":"thinking","thinking":"","signature":"CAQSnRkKEAgUGAI4AUIIdGhpbmtpbmcSDECD/LTCQvsboOXULxoMl/BMoaAVDj9Xy94AIjBAYkpfvpXD2rip4gkxc/b+An/7BsENXXNE0a4jZ/kDoMAEmwUPmQ7RccsV50qf1+Yquhhm8uGwiDrLIXTKzDxLHKuqmb9D25jp/kiL7qQIV/gOUDmyWVj/1MirF2bmclCFUKL2VYM1XUAyRXsNpsJQw3y823gtD2CcThRUhYn6AM2x6vqgt7T77b/+CnTp5t0i/EmsvQMF7FsGFiX7mYL3D60KhofZ/TbfXfnLbnZhTy0yJQhF5wtNySeuNV45yKB/HHhYe+F52AUob8GWMDROz5XGyQ/Z6DxXujrkD6xAmx2bmRJBV6Lb7un3O72wy1B+Er7RgBlQkwQXG/ISCzeuMhs8irUL8OIrsuxC/vPlx1V/AuAmBq+p/aj8s+yZFRjqBXg5it+NYWzhlQ3doWdePy7emrzznILVwd3Uhof27AVESzs0wOTV704KkF5gCHr0FBWrRaT6f6OCD28js34qeXPRtAx+RdMQzr6nGwFCqRgy13I3EH60AbFMHEJdOT8R+cQWvEejMEQM0HH1E6U7RvuCEhXTdpvLbv49HTKwUi+LcNGrJR60FcCIiiYsFaMURNpKk0JlljgXqDLUbPW2ceYLi7RBaYE/PESrt4WimiAjBp0/pRk4nYgHWCoOn2zrYXmxAgnTQGn/cL/KvYjZWvbzRqGaa4pcLEb6JjSG1RkqVaMShqyG2ezcrHPG8QRbCTMOsKx+4dqPEIO14AJd5Bd/f1mnxKPF08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IGPfp06b/+h1jHq/fNPaBGTf3etQm7MB/jnVHa0UR9DuwHk4TiLJdqOWIx5gwWxlN3nf7w8Sjm4S/jeubTLMlD3KDU3EC2FOs9yls4omQxw0zNMe4kj8OIsGKbJhe/Fn7yoQXp74WtuZrXCTNXKk0JMk0ke2dQk96MpxVIlluMSq/101dXBbI/uWfEXoRSFSE9jC30rNW52U+XuBP5zKj4tJ6Nn8U9QDJebhbh9+IeBeonOGAE="}],"container":null,"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":6185,"cache_read_input_tokens":21042,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":6185},"output_tokens":6,"service_tier":"standard","inference_geo":"global","speed":"standard"},"input_transformations":[],"diagnostics":null,"context_management":null},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"0a23652a-5374-4293-aff5-0bf00b5722ef","timestamp":"2026-11-22T00:50:52.284Z","request_id":"req_011ChH3oeMCKMPLSecTpdU8b","thinking_duration_ms":12882,"thinking_display":"updates"}{"type":"assistant","message":{"model":"claude-opus-5-5","id":"msg_011ChH3oeSevUfbAZGzzD2xN","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_017oXLh7MUJfkoU6akQvbYwc","name":"Bash","input":{"command":"cd /home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work; for d in input/*; do echo $d $(ls $d|wc -l); done; python -c \"\nfrom PIL import Image;import glob,collections\nprint(collections.Counter(Image.open(f).size for f in glob.glob('input/test/*.png')))\nprint(collections.Counter(Image.open(f).size for f in glob.glob('input/train/*.png')))\""},"caller":{"type":"direct"}}],"container":null,"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":6185,"cache_read_input_tokens":21042,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":6185},"output_tokens":6,"service_tier":"standard","inference_geo":"global","speed":"standard"},"input_transformations":[],"diagnostics":null,"context_management":null},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"9ff5d7e1-c675-44ff-ab30-e119ee3c78be","timestamp":"2026-11-22T00:50:53.639Z","request_id":"req_011ChH3oeMCKMPLSecTpdU8b","wire_tool_inputs":{"toolu_017oXLh7MUJfkoU6akQvbYwc":{"command":"cd /home/hal/.cache/styx/forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work; for d in input/*; do echo $d $(ls $d|wc -l); done; python -c \"\nfrom PIL import Image;import glob,collections\nprint(collections.Counter(Image.open(f).size for f in glob.glob('input/test/*.png')))\nprint(collections.Counter(Image.open(f).size for f in glob.glob('input/train/*.png')))\""}}}{"type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_017oXLh7MUJfkoU6akQvbYwc","type":"tool_result","content":"input/test 29\ninput/train 115\ninput/train_cleaned 115\nCounter({(540, 420): 20, (540, 258): 9})\nCounter({(540, 420): 76, (540, 258): 39})","is_error":false}]},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"8d90d5f9-8ac0-4154-ba28-ce40a3a902d8","timestamp":"2026-11-22T00:50:53.793Z","tool_use_result":{"stdout":"input/test 29\ninput/train 115\ninput/train_cleaned 115\nCounter({(540, 420): 20, (540, 258): 9})\nCounter({(540, 420): 76, (540, 258): 39})","stderr":"","interrupted":false,"isImage":false,"noOutputExpected":false},"tool_result_meta":[{"id":"toolu_017oXLh7MUJfkoU6akQvbYwc","permission_decision":{"decision":"accept","source":"config","reason_type":"rule"}}]}{"type":"system","subtype":"thinking_tokens","estimated_tokens":50,"estimated_tokens_delta":50,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"8b174c9b-99b1-40e4-bac8-1f75302e471d"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":100,"estimated_tokens_delta":50,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"55e3faec-6a04-4548-baa8-d32ad8168aff"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":250,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"4f2eac84-5745-4113-97a1-c949b4b72cf0"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":350,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"1c799d9f-fd8c-45d4-866a-6408e32e3038"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":450,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"d880a138-a9ed-47dc-82bb-773057536fd5"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":550,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"595912ea-030b-4786-95b1-a32f25f921d1"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":700,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"1d446dbb-972f-4ca4-9785-c438e2020b70"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":800,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"f4670dc2-5883-4e7d-af12-cd9919289ede"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":950,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"87da6b64-02f6-4d4d-86ab-60a5182e7717"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1050,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"f631aabf-29d0-4442-8c69-8ab2ccb30040"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1150,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"54578ae2-9fc6-4581-aaf1-06c2215987dd"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1250,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"13cc2b34-71d5-4f1f-bad4-7af91334bacd"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1350,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"640fb785-acd9-4c56-a323-d9a6183da9b5"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1450,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"282e7c55-7f6e-47bf-860f-80a432e67900"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1600,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"e4dedac0-0c6e-49cb-9611-7d1b902703a4"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1650,"estimated_tokens_delta":50,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"542be3e3-7785-4dcd-8cee-4f36109668e4"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1800,"estimated_tokens_delta":150,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"cde66560-64f9-4c16-a96d-209aa9870f5d"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":1900,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"d9594961-76d9-4bd9-93ea-451ccb68272e"}{"type":"system","subtype":"thinking_tokens","estimated_tokens":2000,"estimated_tokens_delta":100,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"6c555753-690b-4f87-9162-342782663984"}{"type":"assistant","message":{"model":"claude-opus-5-5","id":"msg_011ChH3prZCTiLLEx1TNSKem","type":"message","role":"assistant","content":[{"type":"thinking","thinking":"","signature":"CAQSkyoKEAgUGAI4AUIIdGhpbmtpbmcSDE4ldRsr6KE4kX1/rxoMb8sdzO4cIWNYQTDeIjAvqi4/k0GONRdf4/E2QKosSzcZ0BE/eKzOADakGBHMzBTj/QcQ5b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ej967+j+eIzYufrK053hQULuqBoPdd+Ck8XkXBH6jYTFuAwNw3Q7nxnGjD0Iozp+/Az6eTN0pf0fYSGXTl0SsQvBT/mPnCWNya2yLR9850iTmR1/yki2nHeAL67HsvFuKZsQUsJ43xYx8U4QtkQLqvhg10VnGfGFcxLtZS275u6GWO7O4+aN35kP9GB4G6NRjV1wNm1pejNS0KakDOuVwdnDQE1UfOYIbw+TnYBayGMGQqSQXt4jc4TLPYgqIY3eYsJAlv9H7k3p/Oa6+txU5mGGNABCv4ltcmK8XxzfthYmzC32e1fAmpnUy4BfPUZnugqsC9F2m7nS2Smo0ZLR8yhxxMJREz0fFxnLA1+Cp2DoHRZyeYWIPiWZwFg1pVCCy2MsUi7QXWc1WxgE/Va4BavTDpd7ztf76Md460X6j89NewrihG6PF2KLJB8koueUZggMwAKo8Ew1fEO73AHMGcKC4mnSV1hGS3ypAwvl0mJ4BIxZ597Sc9h6PNOD3HSxCPey57sS6U7pMHzq93roEYOIvjZlEGbPnSp8Z1h3HNEtbz/hTbnGAE="}],"container":null,"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":1547,"cache_read_input_tokens":27227,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":1547},"output_tokens":8,"service_tier":"standard","inference_geo":"global","speed":"standard"},"input_transformations":[],"diagnostics":null,"context_management":null},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"3f4e97ec-a1a3-4f68-9814-aa9eb9bd9633","timestamp":"2026-11-22T00:51:25.949Z","request_id":"req_011ChH3prTzForYF1VEag4Yk","thinking_duration_ms":30762,"thinking_display":"updates"}{"type":"assistant","message":{"model":"claude-opus-5-5","id":"msg_011ChH3prZCTiLLEx1TNSKem","type":"message","role":"assistant","content":[{"type":"text","text":"I couldn't do a test run, because this full-size U-Net is far too slow to train on 4 CPU threads. These numbers are estimates from reading the script and counting the data.\n\n**What the run does**\n- **Data:** 115 training images, split 92 for training and 23 for validation. There are 29 test images, all 540 px wide and either 420 or 258 px tall.\n- **Model:** a standard U-Net (channels growing from 64 to 1024, about 31M parameters) with ECA attention blocks. It trains one image at a time with mixed precision (fp16) but no gradient scaler.\n- **Schedule:** 5 epochs at 128×128, then 5 at 256×256, then 10 at 420×540, then 10 at each image's own size with a lower learning rate. Every stage can stop early.\n- **Which model predicts:** the saved best model is overwritten during the final native-size stage, so the test predictions come from that model at each image's real size, with no resizing.\n\n**Runtime**\n- One forward pass at 420×540 is about 330 GFLOPs, so a training step is roughly 1 TFLOP. On an A10 in fp16 that's about 50–80 ms. cudnn is set to deterministic with benchmarking off, which may make it slower.\n- One full-resolution epoch takes about 7 s including validation. With about 20 such epochs plus the small low-resolution ones, training comes to roughly 150 s.\n- Add about 10��15 s for startup and CUDA setup, and about 20–30 s to write the submission: a Python loop over 5.8M pixels, then `to_csv`.\n- My median is about 220 s, and it could be up to about twice that if cudnn picks slow algorithms.\n\n**GPU memory:** weights, gradients and AdamW state take about 0.5 GB. Activations for one 420×540 image are about 0.6–1 GB. Adding cudnn workspace and allocator caching, I expect a peak of about 2.5 GB.\n\n**Score**\n- U-Nets trained on native-resolution images usually reach a test RMSE of about 0.025–0.04 on this task.\n- Three things in the script should cost some accuracy:\n - Without a gradient scaler, the per-pixel gradients at full resolution are around 1e-7. That's subnormal in fp16, so small errors round to zero, which weakens the final fine-tuning.\n - Stretching the 258 px images to 420×540 in the third stage distorts them.\n - Batch-norm statistics from single images during training won't quite match the running averages used at test time.\n- My median is about 0.045, with a long tail upwards in case training stalls or the model drifts towards predicting all-white pages.\n\nRUNTIME_S=220\nRUNTIME_S_LOW=140\nRUNTIME_S_HIGH=420\nPEAK_GPU_MB=2600\nTEST_RMSE=0.045\nTEST_RMSE_LOW=0.026\nTEST_RMSE_HIGH=0.11\nREQUEST_S=1200"}],"container":null,"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":1547,"cache_read_input_tokens":27227,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":1547},"output_tokens":8,"service_tier":"standard","inference_geo":"global","speed":"standard"},"input_transformations":[],"diagnostics":null,"context_management":null},"parent_tool_use_id":null,"session_id":"11a01114-2d80-40db-ba9b-df3536707bef","uuid":"0fe710cf-00c0-4696-933f-bdb95bacff3b","timestamp":"2026-11-22T00:51:28.208Z","request_id":"req_011ChH3prTzForYF1VEag4Yk"}{"duration_api_ms":53239,"stop_reason":"end_turn","session_id":"11a01114-2d80-40db-ba9b-df3536707bef","total_cost_usd":0.22496880000000002,"usage":{"input_tokens":6,"cache_creation_input_tokens":14879,"cache_read_input_tokens":62164,"output_tokens":4674,"output_tokens_details":{"thinking_tokens":3341},"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":14879,"ephemeral_5m_input_tokens":0},"inference_geo":"global","iterations":[{"input_tokens":2,"output_tokens":3079,"cache_read_input_tokens":27227,"cache_creation_input_tokens":1547,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":1547},"type":"message"}],"speed":"standard","fallback_credit":null},"modelUsage":{"claude-opus-5-5":{"inputTokens":6,"outputTokens":4674,"cacheReadInputTokens":62164,"cacheCreationInputTokens":14879,"webSearchRequests":0,"costUSD":0.22496880000000002,"contextWindow":1000000,"maxOutputTokens":128000,"thinkingTokens":3341,"cacheCreationEphemeral5mInputTokens":0,"cacheCreationEphemeral1hInputTokens":14879,"canonicalModel":"claude-opus-5-5","provider":"firstParty","costBasis":"list"}},"permission_denials":[],"terminal_reason":"completed","fast_mode_state":"off","fast_mode_disabled_reason":"sdk_opt_in_required","subagent_stats":{"spawned":0,"requested":{"background":0,"foreground":0,"unset":0},"started_in_background":0,"max_depth":0,"spawned_by_subagents":0,"completed":0,"failed":0,"killed":{"parent":0,"user":0,"system":0},"refused":{"depth_limit":0,"concurrency_limit":0,"budget":0},"by_type":{}},"safety_stops":0,"is_error":false,"num_turns":3,"subtype":"success","api_error_status":null,"result":"I couldn't do a test run, because this full-size U-Net is far too slow to train on 4 CPU threads. These numbers are estimates from reading the script and counting the data.\n\n**What the run does**\n- **Data:** 115 training images, split 92 for training and 23 for validation. There are 29 test images, all 540 px wide and either 420 or 258 px tall.\n- **Model:** a standard U-Net (channels growing from 64 to 1024, about 31M parameters) with ECA attention blocks. It trains one image at a time with mixed precision (fp16) but no gradient scaler.\n- **Schedule:** 5 epochs at 128×128, then 5 at 256×256, then 10 at 420×540, then 10 at each image's own size with a lower learning rate. Every stage can stop early.\n- **Which model predicts:** the saved best model is overwritten during the final native-size stage, so the test predictions come from that model at each image's real size, with no resizing.\n\n**Runtime**\n- One forward pass at 420×540 is about 330 GFLOPs, so a training step is roughly 1 TFLOP. On an A10 in fp16 that's about 50–80 ms. cudnn is set to deterministic with benchmarking off, which may make it slower.\n- One full-resolution epoch takes about 7 s including validation. With about 20 such epochs plus the small low-resolution ones, training comes to roughly 150 s.\n- Add about 10–15 s for startup and CUDA setup, and about 20–30 s to write the submission: a Python loop over 5.8M pixels, then `to_csv`.\n- My median is about 220 s, and it could be up to about twice that if cudnn picks slow algorithms.\n\n**GPU memory:** weights, gradients and AdamW state take about 0.5 GB. Activations for one 420×540 image are about 0.6–1 GB. Adding cudnn workspace and allocator caching, I expect a peak of about 2.5 GB.\n\n**Score**\n- U-Nets trained on native-resolution images usually reach a test RMSE of about 0.025–0.04 on this task.\n- Three things in the script should cost some accuracy:\n - Without a gradient scaler, the per-pixel gradients at full resolution are around 1e-7. That's subnormal in fp16, so small errors round to zero, which weakens the final fine-tuning.\n - Stretching the 258 px images to 420×540 in the third stage distorts them.\n - Batch-norm statistics from single images during training won't quite match the running averages used at test time.\n- My median is about 0.045, with a long tail upwards in case training stalls or the model drifts towards predicting all-white pages.\n\nRUNTIME_S=220\nRUNTIME_S_LOW=140\nRUNTIME_S_HIGH=420\nPEAK_GPU_MB=2600\nTEST_RMSE=0.045\nTEST_RMSE_LOW=0.026\nTEST_RMSE_HIGH=0.11\nREQUEST_S=1200","ttft_ms":2716,"type":"result","duration_ms":53851,"uuid":"13dd3af5-7ca3-40bb-bd31-5c1399cd3fa9","ttft_stream_ms":1983,"time_to_request_ms":212,"first_content_frame_ms":1984,"queued_turn_count":0,"result_index":0,"model_usage_since_last_result":{"claude-opus-5-5":{"inputTokens":6,"outputTokens":4674,"cacheReadInputTokens":62164,"cacheCreationInputTokens":14879,"webSearchRequests":0,"costUSD":0.22496880000000002,"contextWindow":1000000,"maxOutputTokens":128000,"thinkingTokens":3341,"cacheCreationEphemeral5mInputTokens":0,"cacheCreationEphemeral1hInputTokens":14879,"canonicalModel":"claude-opus-5-5","provider":"firstParty","costBasis":"list"}},"credential_expires_at":"2026-12-10T20:52:27.393Z"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
import osimport numpy as npimport torchimport torch.nn as nnimport torch.optim as optimfrom torch.utils.data import Dataset, DataLoaderfrom torchvision import transformsfrom PIL import Imageimport pandas as pdfrom sklearn.model_selection import train_test_splitimport randomimport math
if __name__ == "__main__": # Set random seeds for reproducibility random.seed(42) np.random.seed(42) torch.manual_seed(42) torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
class ECAModule(nn.Module): def __init__(self, channels, gamma=2, b=1): super(ECAModule, self).__init__() self.gamma = gamma self.b = b t = int(abs((math.log(channels, 2) + self.b) / self.gamma)) k = t if t % 2 else t + 1 self.avg_pool = nn.AdaptiveAvgPool2d(1) self.conv = nn.Conv1d(1, 1, kernel_size=k, padding=k // 2, bias=False) self.sigmoid = nn.Sigmoid()
def forward(self, x): y = self.avg_pool(x) y = self.conv(y.squeeze(-1).transpose(-1, -2)) y = y.transpose(-1, -2).unsqueeze(-1) y = self.sigmoid(y) return x * y.expand_as(x)
class UNetWithECA(nn.Module): def __init__(self): super(UNetWithECA, self).__init__()
def conv_block(in_channels, out_channels): return nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1), nn.BatchNorm2d(out_channels), nn.LeakyReLU(0.2, inplace=True), nn.Conv2d(out_channels, out_channels, kernel_size=3, padding=1), nn.BatchNorm2d(out_channels), nn.LeakyReLU(0.2, inplace=True), )
# Encoder self.encoder1 = conv_block(1, 64) self.encoder2 = conv_block(64, 128) self.encoder3 = conv_block(128, 256) self.encoder4 = conv_block(256, 512)
self.pool = nn.MaxPool2d(2)
# Middle self.middle = conv_block(512, 1024)
# ECA modules self.eca4 = ECAModule(512) self.eca3 = ECAModule(256) self.eca2 = ECAModule(128)
# Decoder self.upconv4 = nn.ConvTranspose2d(1024, 512, kernel_size=2, stride=2) self.decoder4 = conv_block(1024, 512) self.upconv3 = nn.ConvTranspose2d(512, 256, kernel_size=2, stride=2) self.decoder3 = conv_block(512, 256) self.upconv2 = nn.ConvTranspose2d(256, 128, kernel_size=2, stride=2) self.decoder2 = conv_block(256, 128) self.upconv1 = nn.ConvTranspose2d(128, 64, kernel_size=2, stride=2) self.decoder1 = conv_block(128, 64)
# Final layer self.final = nn.Conv2d(64, 1, kernel_size=1) self.sigmoid = nn.Sigmoid()
def forward(self, x): # Encoder enc1 = self.encoder1(x) enc2 = self.encoder2(self.pool(enc1)) enc3 = self.encoder3(self.pool(enc2)) enc4 = self.encoder4(self.pool(enc3))
# Middle middle = self.middle(self.pool(enc4))
# Decoder with ECA modules dec4 = self.upconv4(middle) if dec4.size()[-2:] != enc4.size()[-2:]: dec4 = transforms.functional.resize(dec4, size=enc4.size()[-2:]) enc4 = self.eca4(enc4) dec4 = torch.cat([dec4, enc4], dim=1) dec4 = self.decoder4(dec4)
dec3 = self.upconv3(dec4) if dec3.size()[-2:] != enc3.size()[-2:]: dec3 = transforms.functional.resize(dec3, size=enc3.size()[-2:]) enc3 = self.eca3(enc3) dec3 = torch.cat([dec3, enc3], dim=1) dec3 = self.decoder3(dec3)
dec2 = self.upconv2(dec3) if dec2.size()[-2:] != enc2.size()[-2:]: dec2 = transforms.functional.resize(dec2, size=enc2.size()[-2:]) enc2 = self.eca2(enc2) dec2 = torch.cat([dec2, enc2], dim=1) dec2 = self.decoder2(dec2)
dec1 = self.upconv1(dec2) if dec1.size()[-2:] != enc1.size()[-2:]: dec1 = transforms.functional.resize(dec1, size=enc1.size()[-2:]) dec1 = torch.cat([dec1, enc1], dim=1) dec1 = self.decoder1(dec1)
out = self.sigmoid(self.final(dec1)) return out
class DenoisingDataset(Dataset): def __init__(self, noisy_files, clean_files, transform=None, target_size=None): self.noisy_files = noisy_files self.clean_files = clean_files self.transform = transform self.target_size = target_size
def __len__(self): return len(self.noisy_files)
def __getitem__(self, idx): noisy_img = Image.open(self.noisy_files[idx]).convert("L") clean_img = Image.open(self.clean_files[idx]).convert("L")
if self.target_size is not None: noisy_img = transforms.functional.resize(noisy_img, self.target_size) clean_img = transforms.functional.resize(clean_img, self.target_size)
if self.transform: noisy_img = self.transform(noisy_img) clean_img = self.transform(clean_img)
return noisy_img, clean_img
def calculate_rmse(preds, targets): return torch.sqrt(torch.mean((preds - targets) ** 2)).item()
def train_model( model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=20 ): best_val_rmse = float("inf") early_stop_counter = 0
for epoch in range(epochs): model.train() train_loss = 0.0
for noisy, clean in train_loader: noisy = noisy.to(device) clean = clean.to(device)
optimizer.zero_grad()
with torch.cuda.amp.autocast(): outputs = model(noisy) loss = criterion(outputs, clean)
loss.backward() torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0) optimizer.step()
train_loss += loss.item()
# Validation model.eval() val_loss = 0.0 with torch.no_grad(): for noisy, clean in val_loader: noisy = noisy.to(device) clean = clean.to(device)
outputs = model(noisy) loss = criterion(outputs, clean) val_loss += loss.item()
train_loss /= len(train_loader) val_loss /= len(val_loader) val_rmse = np.sqrt(val_loss)
if val_rmse < best_val_rmse: best_val_rmse = val_rmse torch.save(model.state_dict(), "best_model.pth")
scheduler.step(val_loss)
print( f"Epoch {epoch+1}/{epochs}, Train Loss: {train_loss:.4f}, Val RMSE: {val_rmse:.4f}" )
# Early stopping if validation loss doesn't improve for 5 epochs if epoch > 5 and val_rmse > best_val_rmse: early_stop_counter += 1 if early_stop_counter >= 5: print("Early stopping triggered") break else: early_stop_counter = 0
return best_val_rmse
def create_submission( model, test_files, transform, output_path="submission/submission.csv" ): model.eval() all_ids = [] all_values = []
for test_file in test_files: img_id = os.path.basename(test_file).split(".")[0] img = Image.open(test_file).convert("L") img = transform(img).unsqueeze(0).to(device)
with torch.no_grad(): pred = model(img)
pred = pred.squeeze().cpu().numpy() h, w = pred.shape
for i in range(h): for j in range(w): pixel_id = f"{img_id}_{i+1}_{j+1}" value = pred[i, j] all_ids.append(pixel_id) all_values.append(value)
submission_df = pd.DataFrame({"id": all_ids, "value": all_values}) os.makedirs("submission", exist_ok=True) submission_df.to_csv(output_path, index=False)
# Prepare data paths train_dir = "input/train" train_clean_dir = "input/train_cleaned" test_dir = "input/test"
train_files = sorted( [ os.path.join(train_dir, f) for f in os.listdir(train_dir) if f.endswith(".png") ] ) train_clean_files = sorted( [ os.path.join(train_clean_dir, f) for f in os.listdir(train_clean_dir) if f.endswith(".png") ] ) test_files = sorted( [os.path.join(test_dir, f) for f in os.listdir(test_dir) if f.endswith(".png")] )
# Split into train and validation train_files, val_files, train_clean_files, val_clean_files = train_test_split( train_files, train_clean_files, test_size=0.2, random_state=42 )
# Progressive resizing training resolutions = [(128, 128), (256, 256), (420, 540)] epochs_per_resolution = [5, 5, 10]
best_val_rmse = float("inf") model = UNetWithECA().to(device) optimizer = optim.AdamW(model.parameters(), lr=1e-3, weight_decay=1e-5) scheduler = optim.lr_scheduler.ReduceLROnPlateau( optimizer, "min", patience=3, factor=0.5 ) criterion = nn.MSELoss()
for res, epochs in zip(resolutions, epochs_per_resolution): print(f"\nTraining at resolution {res} for {epochs} epochs")
# Create transforms for current resolution transform = transforms.Compose( [ transforms.Resize(res), transforms.ToTensor(), ] )
# Create datasets and dataloaders train_dataset = DenoisingDataset( train_files, train_clean_files, transform=transform, target_size=res ) val_dataset = DenoisingDataset( val_files, val_clean_files, transform=transform, target_size=res )
train_loader = DataLoader(train_dataset, batch_size=1, shuffle=True) val_loader = DataLoader(val_dataset, batch_size=1, shuffle=False)
# Train at current resolution current_rmse = train_model( model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=epochs, )
if current_rmse < best_val_rmse: best_val_rmse = current_rmse
# Final training at full resolution print("\nFinal training at full resolution") full_transform = transforms.Compose( [ transforms.ToTensor(), ] )
train_dataset = DenoisingDataset( train_files, train_clean_files, transform=full_transform ) val_dataset = DenoisingDataset(val_files, val_clean_files, transform=full_transform)
train_loader = DataLoader(train_dataset, batch_size=1, shuffle=True) val_loader = DataLoader(val_dataset, batch_size=1, shuffle=False)
# Reset optimizer and scheduler for final training optimizer = optim.AdamW(model.parameters(), lr=1e-4, weight_decay=1e-5) scheduler = optim.lr_scheduler.ReduceLROnPlateau( optimizer, "min", patience=3, factor=0.5 )
final_rmse = train_model( model, train_loader, val_loader, optimizer, scheduler, criterion, epochs=10 )
if final_rmse < best_val_rmse: best_val_rmse = final_rmse
# Save evaluation metric os.makedirs("submission", exist_ok=True) with open("submission/eval_metric.txt", "w") as f: f.write(str(best_val_rmse))
# Load best model and create submission model.load_state_dict(torch.load("best_model.pth")) create_submission(model, test_files, full_transform)
print(f"\nTraining complete. Best validation RMSE: {best_val_rmse:.4f}")forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/episode.jsonAdded+69
forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/stderr.txtAdded
forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/transcript.jsonlAdded+39
forecast/20261122-8220d8f/claude-claude-opus-5-5/local-A10-1/work/solution.pyAdded+361