Skip to content

Commit

Permalink
decord import bugfix in VLMs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobathanH committed Nov 14, 2022
1 parent 44990e0 commit 0b50a19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MILES/wrapper.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os, sys
from typing import Optional, List
import numpy as np
import decord
from transformers import AutoTokenizer

import torch
import decord
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

from SimilarityVLM import SimilarityVLM
Expand Down
2 changes: 1 addition & 1 deletion UNIVL/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
from types import SimpleNamespace
import pandas as pd
import numpy as np
import decord
from typing import Optional
from torchvision.transforms import Compose, CenterCrop, Resize, Lambda

import torch
import decord
import torch.nn.functional as F
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

Expand Down
2 changes: 1 addition & 1 deletion VTTWINS/wrapper.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import importlib
import numpy as np
import os, sys
import decord

import torch
import decord
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

from SimilarityVLM import *
Expand Down

0 comments on commit 0b50a19

Please sign in to comment.