Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,8 @@ DEVICE = torch.device("cpu")
|
|
| 10 |
|
| 11 |
encoder = load_encoder("encoder_resnet18_simclr.pth")
|
| 12 |
|
| 13 |
-
data = np.load("linear_probe_cifar10.npz")
|
| 14 |
-
clf =
|
| 15 |
-
clf.coef_ = data["coef"]
|
| 16 |
-
clf.intercept_ = data["intercept"]
|
| 17 |
-
clf.classes_ = np.arange(10)
|
| 18 |
|
| 19 |
CLASSES = [
|
| 20 |
"airplane","automobile","bird","cat","deer",
|
|
|
|
| 10 |
|
| 11 |
encoder = load_encoder("encoder_resnet18_simclr.pth")
|
| 12 |
|
| 13 |
+
data = np.load("linear_probe_cifar10.npz", allow_pickle=True)
|
| 14 |
+
clf = data["clf"].item()
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
CLASSES = [
|
| 17 |
"airplane","automobile","bird","cat","deer",
|