endoreg-db 0.8.3.7__py3-none-any.whl → 0.8.3.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of endoreg-db might be problematic. Click here for more details.

@@ -8,7 +8,7 @@ from pathlib import Path
8
8
 
9
9
  from django.core.management import call_command
10
10
  from django.core.management.base import BaseCommand
11
-
11
+ from endoreg_db.models import ModelMeta
12
12
 
13
13
  class Command(BaseCommand):
14
14
  help = """
@@ -137,6 +137,14 @@ class Command(BaseCommand):
137
137
  def _find_model_weights_file(self):
138
138
  """Find the model weights file in various possible locations."""
139
139
  # Check common locations for model weights
140
+
141
+ if not ModelMeta.objects.exists():
142
+ print("📦 No model metadata found — creating from Hugging Face...")
143
+ ModelMeta.setup_default_from_huggingface(
144
+ "wg-lux/colo_segmentation_RegNetX800MF_base",
145
+ labelset_name="multilabel_classification_colonoscopy_default"
146
+ )
147
+ print("✅ Default ModelMeta created.")
140
148
  possible_paths = [
141
149
  # Test assets (for development)
142
150
  Path("tests/assets/colo_segmentation_RegNetX800MF_6.ckpt"),
@@ -154,7 +162,10 @@ class Command(BaseCommand):
154
162
  return path
155
163
 
156
164
  self.stdout.write("Model weights file not found in standard locations")
165
+
157
166
  return None
167
+
168
+
158
169
 
159
170
  def _verify_setup(self):
160
171
  """Verify that the setup was successful."""
@@ -194,3 +205,5 @@ class Command(BaseCommand):
194
205
  self.stdout.write(f"Found {meta_count} model metadata record(s)")
195
206
 
196
207
  self.stdout.write("Setup verification passed")
208
+
209
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: endoreg-db
3
- Version: 0.8.3.7
3
+ Version: 0.8.3.8
4
4
  Summary: EndoReg Db Django App
5
5
  Project-URL: Homepage, https://info.coloreg.de
6
6
  Project-URL: Repository, https://github.com/wg-lux/endoreg-db
@@ -290,7 +290,7 @@ endoreg_db/management/commands/load_unit_data.py,sha256=tcux-iL-ByT2ApgmHEkLllZS
290
290
  endoreg_db/management/commands/load_user_groups.py,sha256=D7SK2FvZEHoE4TIXNGCjDw5_12MH9bpGZvoS7eEv0Os,1031
291
291
  endoreg_db/management/commands/register_ai_model.py,sha256=KixTfuQR6TUfRmzB5GOos16BFOz7NL4TzLzBkgtPPgE,2510
292
292
  endoreg_db/management/commands/reset_celery_schedule.py,sha256=U-m_FNRTw6LAwJoT9RUE4qrhmQXm7AyFToPcHYyJpIE,386
293
- endoreg_db/management/commands/setup_endoreg_db.py,sha256=_mJkNB2IZNcgDQkOExUTkmmjp9qMwEiZH2KEJcyCi_Y,8635
293
+ endoreg_db/management/commands/setup_endoreg_db.py,sha256=efOXE6IQs4ey84tIncf6zXI2VVVRd7CYXbeuACFgkgI,9095
294
294
  endoreg_db/management/commands/start_filewatcher.py,sha256=3jESBqRiYPa9f35--zd70qQaYnyT0tzRO_b_HJuyteQ,4093
295
295
  endoreg_db/management/commands/storage_management.py,sha256=NpToX59ndwTFNmnSoeppmiPdMvpjSHH7mAdIe4SvUoI,22396
296
296
  endoreg_db/management/commands/summarize_db_content.py,sha256=pOIz3qbY4Ktmh0zV_DKFx971VD0pPx027gCD7a47EL0,10766
@@ -786,7 +786,7 @@ endoreg_db/views/video/video_meta.py,sha256=C1wBMTtQb_yzEUrhFGAy2UHEWMk_CbU75WXX
786
786
  endoreg_db/views/video/video_processing_history.py,sha256=mhFuS8RG5GV8E-lTtuD0qrq-bIpnUFp8vy9aERfC-J8,770
787
787
  endoreg_db/views/video/video_remove_frames.py,sha256=2FmvNrSPM0fUXiBxINN6vBUUDCqDlBkNcGR3WsLDgKo,1696
788
788
  endoreg_db/views/video/video_stream.py,sha256=kLyuf0ORTmsLeYUQkTQ6iRYqlIQozWhMMR3Lhfe_trk,12148
789
- endoreg_db-0.8.3.7.dist-info/METADATA,sha256=AnfCmoQPqWaQn-LvrsJB0xImN9vp12xyqd-jQLWCpzc,14758
790
- endoreg_db-0.8.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
- endoreg_db-0.8.3.7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
792
- endoreg_db-0.8.3.7.dist-info/RECORD,,
789
+ endoreg_db-0.8.3.8.dist-info/METADATA,sha256=4evIJXXr-HVMvN07sn2wZ0MXR3LujkKoOPF7os_3Bbg,14758
790
+ endoreg_db-0.8.3.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
+ endoreg_db-0.8.3.8.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
792
+ endoreg_db-0.8.3.8.dist-info/RECORD,,