runtime error
Exit code: 1. Reason: onfig/Ultralytics/settings.json' Update Settings with 'yolo settings key=value', i.e. 'yolo settings runs_dir=path/to/dir'. For help see https://docs.ultralytics.com/quickstart/#ultralytics-settings. Segmentation Weights already present IMPORTANT: You are using gradio version 3.0.10, however version 4.29.0 is available, please upgrade. -------- Cache at /home/user/app/gradio_cached_examples/log.csv not found. Caching now in 'gradio_cached_examples/' directory. Downloading: "https://download.pytorch.org/models/resnet50-0676ba61.pth" to /home/user/.cache/torch/hub/checkpoints/resnet50-0676ba61.pth 0%| | 0.00/97.8M [00:00<?, ?B/s][A 100%|██████████| 97.8M/97.8M [00:00<00:00, 359MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 98, in <module> gr.Interface(segment, [i, model_choice], o, File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 420, in __init__ cache_interface_examples(self) File "/usr/local/lib/python3.10/site-packages/gradio/process_examples.py", line 51, in cache_interface_examples raise e File "/usr/local/lib/python3.10/site-packages/gradio/process_examples.py", line 47, in cache_interface_examples prediction = process_example(interface, example_id) File "/usr/local/lib/python3.10/site-packages/gradio/process_examples.py", line 29, in process_example prediction = interface.process(raw_input) File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 713, in process predictions = self.run_prediction(processed_input) File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 677, in run_prediction prediction = predict_fn(*processed_input) File "/home/user/app/app.py", line 60, in segment model, device = load_unet() File "/home/user/app/app.py", line 37, in load_unet checkpoint = torch.load(os.path.join(destination_for_weights, os.path.basename(segmentationWeightsURL)), map_location="cpu") NameError: name 'destination_for_weights' is not defined
Container logs:
Fetching error logs...