Giter Site home page Giter Site logo

trian about east HOT 9 CLOSED

sakurariven avatar sakurariven commented on August 28, 2024
trian

from east.

Comments (9)

wangyuxin87 avatar wangyuxin87 commented on August 28, 2024

Waiting for your response!

from east.

SakuraRiven avatar SakuraRiven commented on August 28, 2024

@wangyuxin87 hi, the code has been only tested on my environment, which is shown in README. So if you are using another environment which causes that bug, change num_workers to 0 and try again. I hope this helps : )

from east.

wangyuxin87 avatar wangyuxin87 commented on August 28, 2024

Thanks for your code and response!
I have some new issue, can you help me?

root@bfd0e7a2dba1:/home/yxwang/pytorch/EAST# CUDA_VISIBLE_DEVICES=6,7 python3 train.py
Traceback (most recent call last):
File "train.py", line 66, in
train(train_img_path, train_gt_path, pths_path, batch_size, lr, num_workers, epoch_iter, save_interval)
File "train.py", line 35, in train
for i, (img, gt_score, gt_geo, ignored_map) in enumerate(train_loader):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 615, in next
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 615, in
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/home/yxwang/pytorch/EAST/dataset.py", line 384, in getitem
lines = f.readlines()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)

Waiting for your response!

from east.

SakuraRiven avatar SakuraRiven commented on August 28, 2024

Putting #coding=utf-8 in the 1st line may help

from east.

wangyuxin87 avatar wangyuxin87 commented on August 28, 2024

I try # coding=utf-8 or # coding:utf-8 in the 1st line of dataset.py, it does not work.... Do you have any other idea? Thanks

from east.

SakuraRiven avatar SakuraRiven commented on August 28, 2024

you may refer to https://stackoverflow.com/questions/35028683/python3-unicodedecodeerror-with-readlines-method

from east.

wangyuxin87 avatar wangyuxin87 commented on August 28, 2024

Thanks! It has worked. Do you add ICDAR 2013 in your training images? I think it will improve the performance.

from east.

SakuraRiven avatar SakuraRiven commented on August 28, 2024

The data distribution in 13 and 15 still exists difference, so you can try and welcome to share the results : )

from east.

wangyuxin87 avatar wangyuxin87 commented on August 28, 2024

The results get worse when I change the basic network to Resnet50, do you have any idea?
By the way, it obtains the same performance with extra dataset(ICDAR2013).

from east.

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.