Giter Club home page Giter Club logo

Comments (9)

HDYYZDN avatar HDYYZDN commented on August 23, 2024 6

model.load_state_dict(checkpoint['state_dict'], strict=False) 解决问题

from semgcn.

jujakoss avatar jujakoss commented on August 23, 2024 3

model.load_state_dict(checkpoint['state_dict'], strict=False) 解决问题

您好,打扰您了,这行代码加到哪里运行呢,谢谢,感激不尽
@SuperAttitude

in viz.py line 106
model_pos.load_state_dict(ckpt['state_dict'], strict=False)

from semgcn.

SuperAttitude avatar SuperAttitude commented on August 23, 2024 1

model.load_state_dict(checkpoint['state_dict'], strict=False) 解决问题

您好,打扰您了,这行代码加到哪里运行呢,谢谢,感激不尽
@SuperAttitude

in viz.py line 106
model_pos.load_state_dict(ckpt['state_dict'], strict=False)

Thank you, thank you for your help, sincerely wish you good luck.

from semgcn.

tamasino52 avatar tamasino52 commented on August 23, 2024 1

print("==> Loading checkpoint '{}'".format(ckpt_path))
ckpt = torch.load(ckpt_path)
start_epoch = ckpt['epoch']
error_best = ckpt['error']
glob_step = ckpt['step']
lr_now = ckpt['lr']

for k, v in ckpt['state_dict'].copy().items():
ckpt['state_dict'][k.replace('nonlocal', 'non_local')] = ckpt['state_dict'].pop(k)

model_pos.load_state_dict(ckpt['state_dict'])

Rename like this.

from semgcn.

1165048017 avatar 1165048017 commented on August 23, 2024

same error

from semgcn.

garyzhao avatar garyzhao commented on August 23, 2024

Hi @Chromium97 ,

I guess you might be using Python 3.

Changing to Python 2 might solve this problem.

Best,
Long

from semgcn.

punjal97 avatar punjal97 commented on August 23, 2024

Hi @garyzhao

I was earlier using Python 3.6.x
but tried running the same thing with new virtual env for Python 2.7.18,

Giving the same error for last command, the other two are working okay just like above.

Any idea here?
Thanks

from semgcn.

SuperAttitude avatar SuperAttitude commented on August 23, 2024

model.load_state_dict(checkpoint['state_dict'], strict=False) 解决问题

您好,打扰您了,这行代码加到哪里运行呢,谢谢,感激不尽

from semgcn.

PawAlldeller avatar PawAlldeller commented on August 23, 2024

model.load_state_dict(checkpoint['state_dict'], strict=False) 解决问题

您好,打扰您了,这行代码加到哪里运行呢,谢谢,感激不尽
@SuperAttitude

in viz.py line 106 model_pos.load_state_dict(ckpt['state_dict'], strict=False)

Sorry, but where is this viz located?py ? How to find it

from semgcn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.