xiaobaishu0097 / ICLR_VTNet

32 stars 10 forks source link

models文件夹下缺少文件visualtransformermodel #6

Closed WH0226 closed 1 year ago

WH0226 commented 1 year ago

我在运行代码时出现了以下错误,请问这个代码文件在哪里

Traceback (most recent call last): File "main.py", line 21, in from utils.class_finder import model_class, agent_class, optimizer_class File "/ddn/wanghao/ICLR_VTNet/utils/class_finder.py", line 1, in import models File "/ddn/wanghao/ICLR_VTNet/models/init.py", line 3, in from .pretrainedvisualtransformer import PreTrainedVisualTransformer File "/ddn/wanghao/ICLR_VTNet/models/pretrainedvisualtransformer.py", line 13, in from .visualtransformermodel import VisualTransformer, get_gloabal_pos_embedding ModuleNotFoundError: No module named 'models.visualtransformermodel'

LazySapphire commented 1 month ago

请问如何解决?我也不知道上哪儿去找这么个函数呢?

WH0226 commented 1 month ago

请问如何解决?我也不知道上哪儿去找这么个函数呢?

vtnetmodel.py 中有 VisualTransformer, get_gloabal_pos_embedding,改一下 import 的文件试试

LazySapphire commented 1 month ago

请问如何解决?我也不知道上哪儿去找这么个函数呢?

vtnetmodel.py 中有 VisualTransformer, get_gloabal_pos_embedding,改一下 import 的文件试试

好的,谢谢~ 我试试