Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup install and dependencies #5

Merged
merged 5 commits into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions gluefactory/eval/eth3d.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import torch
from pathlib import Path
from omegaconf import OmegaConf
import matplotlib.pyplot as plt
import resource
from collections import defaultdict
from tqdm import tqdm
import numpy as np
Expand All @@ -22,12 +20,6 @@
from ..datasets import get_dataset


rlimit = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit(resource.RLIMIT_NOFILE, (4096, rlimit[1]))

torch.set_grad_enabled(False)


def eval_dataset(loader, pred_file, suffix=""):
results = defaultdict(list)
results["num_pos" + suffix] = 0
Expand Down
8 changes: 0 additions & 8 deletions gluefactory/eval/hpatches.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import torch
from pathlib import Path
from omegaconf import OmegaConf
from pprint import pprint
import matplotlib.pyplot as plt
import resource
from collections import defaultdict
from collections.abc import Iterable
from tqdm import tqdm
Expand All @@ -30,12 +28,6 @@
from .eval_pipeline import EvalPipeline


rlimit = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit(resource.RLIMIT_NOFILE, (4096, rlimit[1]))

torch.set_grad_enabled(False)


class HPatchesPipeline(EvalPipeline):
default_conf = {
"data": {
Expand Down
6 changes: 0 additions & 6 deletions gluefactory/eval/megadepth1500.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from omegaconf import OmegaConf
from pprint import pprint
import matplotlib.pyplot as plt
import resource
from collections import defaultdict
from collections.abc import Iterable
from tqdm import tqdm
Expand All @@ -23,11 +22,6 @@

from .utils import eval_relative_pose_robust, eval_poses, eval_matches_epipolar

rlimit = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit(resource.RLIMIT_NOFILE, (4096, rlimit[1]))

torch.set_grad_enabled(False)


class MegaDepth1500Pipeline(EvalPipeline):
default_conf = {
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies = [
"kornia",
"seaborn",
"joblib",
"lightglue @ git+https://github.com/cvg/LightGlue.git",
]
urls = {Repository = "https://github.com/cvg/glue-factory"}

Expand All @@ -44,8 +45,8 @@ extra = [
]
dev = ["black", "flake8", "jupyter"]

[tool.setuptools]
packages = ["gluefactory", "gluefactory_nonfree"]
[tool.setuptools.packages.find]
include = ["gluefactory*"]

[tool.setuptools.package-data]
gluefactory = ["datasets/megadepth_scene_lists/*.txt"]
gluefactory = ["datasets/megadepth_scene_lists/*.txt", "configs/*.yaml"]