Code Monkey home page Code Monkey logo

Comments (6)

Shaosifan avatar Shaosifan commented on July 19, 2024

The loss.pt file is in the save folder of the experiment dir.

from transenet.

muzili5 avatar muzili5 commented on July 19, 2024

experimen

But there is no loss.pt in my experiment dir. How is loss.pt generated and saved in the experiment directory?

from transenet.

Shaosifan avatar Shaosifan commented on July 19, 2024

When you use this code to train on a scale factor of x4, the save folder 'TRANSENETx4_UCMerced' will be generated in the experiment directory:

python demo_train.py --model=TRANSENET --dataset=UCMerced --scale=4 --patch_size=192 --ext=img --save=TRANSENETx4_UCMerced

And the loss.pt will be saved in the 'TRANSENETx4_UCMerced' folder during training. The save code is at trainer.loss.save(self.dir)

This is the content in my generated folder here:
test

from transenet.

muzili5 avatar muzili5 commented on July 19, 2024

But when I run it as you did, it shows ImportError: DLL load failed while importing ft2font: 找不到指定的模块。Are there any other directories in the code that need to be modified?

from transenet.

muzili5 avatar muzili5 commented on July 19, 2024

Please tell me how to solve the error einops.EinopsError: Error while processing rearrange-reduction pattern "b (h w) (p1 p2 c) -> b c (h p1) (w p2)".
Input tensor shape: torch.Size([16, 1024, 1024]). Additional info: {'h': 24, 'p1': 8, 'p2': 8}.
Shape mismatch, can't divide axis of length 1024 in chunks of 24 after running halfway

from transenet.

Shaosifan avatar Shaosifan commented on July 19, 2024

Please tell me how to solve the error einops.EinopsError: Error while processing rearrange-reduction pattern "b (h w) (p1 p2 c) -> b c (h p1) (w p2)". Input tensor shape: torch.Size([16, 1024, 1024]). Additional info: {'h': 24, 'p1': 8, 'p2': 8}. Shape mismatch, can't divide axis of length 1024 in chunks of 24 after running halfway

It is suggested to check the shape of input when using rearrange function.

from transenet.

Related Issues (18)

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.