Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files6 unmodified lines789101112316 unmodified lines3293303313323333343356 unmodified linesimport torch.nn as nnimport torch.nn.functional as Fimport torchvision.models as modelsdef rgb2lab2(r0, g0, b0):316 unmodified linesdevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu')model_path = "Hyper_U_NET_pytorch-MAE-30Epoch.pth"test_model = load_model_for_inference(model_path, device)6 unmodified lines78910111213316 unmodified lines3303313323333343353363376 unmodified linesimport torch.nn as nnimport torch.nn.functional as Fimport torchvision.models as modelsimport osdef rgb2lab2(r0, g0, b0):316 unmodified linesdevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu')model_path = os.path.join(os.getcwd(), 'Hyper_U_NET_pytorch-MAE-30Epoch.pth')# model_path = "Hyper_U_NET_pytorch-MAE-30Epoch.pth"test_model = load_model_for_inference(model_path, device)
src/streamlit_app.py+3-1