-
Notifications
You must be signed in to change notification settings - Fork 36
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
Issue installing under conda #13
Comments
The same issue was tried on both Linux (Ubuntu) and Windows. |
Solved
You need to modify the following line in videoseal\utils\cfg.py
You need to modify the following line in videoseal_init_.py
Then |
I think the pyproject.toml file is meaningless for packages that are not published to PyPI. |
This issue persists. The fix mentioned by people above is precisely the follows: diff --git a/videoseal/__init__.py b/videoseal/__init__.py
index c197183..8d19b48 100644
--- a/videoseal/__init__.py
+++ b/videoseal/__init__.py
@@ -3,7 +3,11 @@
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
+"""
+Videoseal Package
+Videoseal is a package,write anything here.
+"""
__version__ = "0.1"
from .utils.cfg import setup_model_from_model_card as load
diff --git a/videoseal/models/extractor.py b/videoseal/models/extractor.py
index ae16730..9986f96 100644
--- a/videoseal/models/extractor.py
+++ b/videoseal/models/extractor.py
@@ -5,10 +5,10 @@
import torch
from torch import nn
-from videoseal.modules.convnext import ConvNeXtV2
-from videoseal.modules.hidden import HiddenDecoder
-from videoseal.modules.pixel_decoder import PixelDecoder
-from videoseal.modules.vit import ImageEncoderViT
+from ..modules.convnext import ConvNeXtV2
+from ..modules.hidden import HiddenDecoder
+from ..modules.pixel_decoder import PixelDecoder
+from ..modules.vit import ImageEncoderViT
class Extractor(nn.Module):
diff --git a/videoseal/utils/cfg.py b/videoseal/utils/cfg.py
index a292ec6..18fb3ac 100644
--- a/videoseal/utils/cfg.py
+++ b/videoseal/utils/cfg.py
@@ -14,10 +14,10 @@ import torch
import torchvision.transforms as transforms
from omegaconf import DictConfig, OmegaConf
-from videoseal.augmentation.augmenter import get_dummy_augmenter
-from videoseal.data.datasets import CocoImageIDWrapper, ImageFolder, VideoDataset
-from videoseal.models import Videoseal, build_embedder, build_extractor, build_baseline
-from videoseal.modules.jnd import JND
+from ..augmentation.augmenter import get_dummy_augmenter
+from ..data.datasets import CocoImageIDWrapper, ImageFolder, VideoDataset
+from ..models import Videoseal, build_embedder, build_extractor, build_baseline
+from ..modules.jnd import JND
omegaconf.OmegaConf.register_new_resolver("mul", lambda x, y: x * y)
omegaconf.OmegaConf.register_new_resolver("add", lambda x, y: x + y)
@@ -253,4 +253,4 @@ def setup_dataset(args):
transform = resize_short_edge
)
print(f"Image dataset loaded from {dataset_config.val_dir}")
- return dataset
\ No newline at end of file
+ return dataset |
Hello, I'm excited by this work and to get it running but am having issues doing so with conda.
How to reproduce:
When running pip install -e . I get
I've also tried installing the pytorch related dependencies first, as well as doing this under a
venv
but get the same error in both cases.The text was updated successfully, but these errors were encountered: